diff options
author | Tom Grennan <tgrennan@vyatta.com> | 2008-01-22 16:06:16 -0800 |
---|---|---|
committer | Tom Grennan <tgrennan@vyatta.com> | 2008-01-22 16:06:16 -0800 |
commit | 068559d17467e255537f7327e2cf10431dbf7620 (patch) | |
tree | 058ac8d3453907f33c2b0038b995045eecc3dd17 /etc | |
parent | 31d8f4539b68b3e65b0d98bce0d564705ffa1992 (diff) | |
download | vyatta-cfg-068559d17467e255537f7327e2cf10431dbf7620.tar.gz vyatta-cfg-068559d17467e255537f7327e2cf10431dbf7620.zip |
use log_action_*_msg for config mount/umount
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/init.d/vyatta-ofr | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr index 6c4b475..5950651 100755 --- a/etc/init.d/vyatta-ofr +++ b/etc/init.d/vyatta-ofr @@ -103,9 +103,10 @@ load_bootfile () start () { - log_daemon_msg "Mounting Vyatta Config" - mount -o nosuid,nodev,mode=775 -t tmpfs none ${vyatta_configdir} - chgrp ${GROUP} ${vyatta_configdir} + log_action_begin_msg "Mounting Vyatta Config" + mount -o nosuid,nodev,mode=775 -t tmpfs none ${vyatta_configdir} && \ + chgrp ${GROUP} ${vyatta_configdir} + log_action_end_msg $? init_bootfile log_end_msg $? log_daemon_msg "Rescan Network Interfaces" @@ -134,8 +135,10 @@ stop() ${vyatta_sbindir}/${s}.init stop let status\|=$? done - umount ${vyatta_configdir} log_end_msg $status + log_action_begin_msg "Un-mounting Vyatta Config" + umount ${vyatta_configdir} + log_action_end_msg $? } case "$action" in |