summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-08-13 21:23:13 +0000
committerjkim <jkim@FreeBSD.org>2010-08-13 21:23:13 +0000
commitfe93fcde05c2eaca0f659de9d00824e896039d21 (patch)
tree939889c6693bdb76a48ab1bc3633d8f140a98fa6 /etc
parent4d7d840be1e4e43c9b2dd956b7da2a40e7ac3e8f (diff)
downloadFreeBSD-src-fe93fcde05c2eaca0f659de9d00824e896039d21.zip
FreeBSD-src-fe93fcde05c2eaca0f659de9d00824e896039d21.tar.gz
Consistently use full pathnames for external commands.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.resume6
-rwxr-xr-xetc/rc.suspend8
2 files changed, 7 insertions, 7 deletions
diff --git a/etc/rc.resume b/etc/rc.resume
index da24a54..2cf1a60 100755
--- a/etc/rc.resume
+++ b/etc/rc.resume
@@ -39,7 +39,7 @@ state=$2
if [ -r /var/run/rc.suspend.pid ]; then
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'
fi
@@ -62,7 +62,7 @@ fi
# the following to signal it to reassociate.
# /usr/sbin/wpa_cli reassociate
-logger -t $subsystem resumed at `date +'%Y%m%d %H:%M:%S'`
-sync && sync && sync
+/usr/bin/logger -t $subsystem resumed at `/bin/date +'%Y%m%d %H:%M:%S'`
+/bin/sync && /bin/sync && /bin/sync
exit 0
diff --git a/etc/rc.suspend b/etc/rc.suspend
index 53e44cd..90c085b 100755
--- a/etc/rc.suspend
+++ b/etc/rc.suspend
@@ -64,11 +64,11 @@ esac
# suspend and reloading it on resume. Example:
# kldunload usb
-logger -t $subsystem suspend at `date +'%Y%m%d %H:%M:%S'`
-sync && sync && sync
-sleep 3
+/usr/bin/logger -t $subsystem suspend at `/bin/date +'%Y%m%d %H:%M:%S'`
+/bin/sync && /bin/sync && /bin/sync
+/bin/sleep 3
-rm -f /var/run/rc.suspend.pid
+/bin/rm -f /var/run/rc.suspend.pid
if [ $subsystem = "apm" ]; then
/usr/sbin/zzz
else
OpenPOWER on IntegriCloud