aboutsummaryrefslogtreecommitdiff
path: root/hwclock
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-06-04 19:58:14 -0400
committerTom Gundersen <teg@jklm.no>2011-06-05 02:25:32 +0200
commit71ef9c40189ff87d84c7bf354fb43038997913d1 (patch)
treedaaae1c2b39ed6df222ed20c7861ef010cbf30b1 /hwclock
parentc6adbe7a36a7330debfaa07d4351bcd80d479214 (diff)
downloadinitscripts-71ef9c40189ff87d84c7bf354fb43038997913d1.tar.xz
remove absolute paths from daemons and rc.d
These are run from a context where PATH will be set, so defining absolute paths is unnecessary.
Diffstat (limited to 'hwclock')
-rwxr-xr-xhwclock6
1 files changed, 3 insertions, 3 deletions
diff --git a/hwclock b/hwclock
index d9de9e1..117ab14 100755
--- a/hwclock
+++ b/hwclock
@@ -13,9 +13,9 @@ case "$1" in
start)
if [[ $HWCLOCK_PARAMS ]]; then
status "Adjusting Hardware Clock" \
- /sbin/hwclock --adjust
+ hwclock --adjust
stat_busy "Setting System Clock"
- /sbin/hwclock --hctosys $HWCLOCK_PARAMS || stat_die
+ hwclock --hctosys $HWCLOCK_PARAMS || stat_die
stat_done
# Note: This also enables /etc/cron.hourly/adjtime
add_daemon hwclock
@@ -24,7 +24,7 @@ case "$1" in
stop)
if [[ $HWCLOCK_PARAMS ]]; then
stat_busy "Saving System Clock"
- /sbin/hwclock --systohc $HWCLOCK_PARAMS || stat_die
+ hwclock --systohc $HWCLOCK_PARAMS || stat_die
stat_done
fi
rm_daemon hwclock