mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Avoid connecting the USB drive if it'll just immediately be disconnected.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user