Consistently use full pathnames for external commands.
This commit is contained in:
parent
ea9ba9fe93
commit
4a2637c486
@ -39,7 +39,7 @@ state=$2
|
|||||||
|
|
||||||
if [ -r /var/run/rc.suspend.pid ]; then
|
if [ -r /var/run/rc.suspend.pid ]; then
|
||||||
kill -9 `cat /var/run/rc.suspend.pid`
|
kill -9 `cat /var/run/rc.suspend.pid`
|
||||||
rm -f /var/run/rc.suspend.pid
|
/bin/rm -f /var/run/rc.suspend.pid
|
||||||
echo 'rc.resume: killed rc.suspend that was still around'
|
echo 'rc.resume: killed rc.suspend that was still around'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ fi
|
|||||||
# the following to signal it to reassociate.
|
# the following to signal it to reassociate.
|
||||||
# /usr/sbin/wpa_cli reassociate
|
# /usr/sbin/wpa_cli reassociate
|
||||||
|
|
||||||
logger -t $subsystem resumed at `date +'%Y%m%d %H:%M:%S'`
|
/usr/bin/logger -t $subsystem resumed at `/bin/date +'%Y%m%d %H:%M:%S'`
|
||||||
sync && sync && sync
|
/bin/sync && /bin/sync && /bin/sync
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -64,11 +64,11 @@ esac
|
|||||||
# suspend and reloading it on resume. Example:
|
# suspend and reloading it on resume. Example:
|
||||||
# kldunload usb
|
# kldunload usb
|
||||||
|
|
||||||
logger -t $subsystem suspend at `date +'%Y%m%d %H:%M:%S'`
|
/usr/bin/logger -t $subsystem suspend at `/bin/date +'%Y%m%d %H:%M:%S'`
|
||||||
sync && sync && sync
|
/bin/sync && /bin/sync && /bin/sync
|
||||||
sleep 3
|
/bin/sleep 3
|
||||||
|
|
||||||
rm -f /var/run/rc.suspend.pid
|
/bin/rm -f /var/run/rc.suspend.pid
|
||||||
if [ $subsystem = "apm" ]; then
|
if [ $subsystem = "apm" ]; then
|
||||||
/usr/sbin/zzz
|
/usr/sbin/zzz
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user