Avoid connecting the USB drive if it'll just immediately be disconnected.

This commit is contained in:
cimryan
2018-10-12 13:44:18 -07:00
parent 24d662276e
commit 1aac431c06
3 changed files with 28 additions and 21 deletions

View File

@@ -73,10 +73,6 @@ function log () {
echo "$1" >> "$LOGFILE"
}
log "Running fsck..."
/sbin/fsck /mnt/usb_share -- -a >> "$LOGFILE" 2>&1 || echo ""
log "Running modprobe..."
/sbin/modprobe g_mass_storage >> "$LOGFILE" 2>&1
log "Launching archival script..."
/root/bin/archiveloop &
log "All done"