13: if [ -f /sys/module/scsi_mod/parameters/scan ]; then 14: echo sync > /sys/module/scsi_mod/parameters/scan 15: fi
Not sure how come the file is there, yet "cannot be created" when we try to echo into it... maybe it's not writable or disappears.
I think the quickest botch that i can think of is:
echo sync > /sys/module/scsi_mod/parameters/scan 2>/dev/null || :
to redirect errors to oblivion, and to ignore errors from this action....
13: if [ -f /sys/module/ scsi_mod/ parameters/ scan ]; then scsi_mod/ parameters/ scan
14: echo sync > /sys/module/
15: fi
Not sure how come the file is there, yet "cannot be created" when we try to echo into it... maybe it's not writable or disappears.
I think the quickest botch that i can think of is:
echo sync > /sys/module/ scsi_mod/ parameters/ scan 2>/dev/null || :
to redirect errors to oblivion, and to ignore errors from this action....