diff options
author | Tom Grennan <tgrennan@vyatta.com> | 2007-11-06 15:42:57 -0800 |
---|---|---|
committer | Tom Grennan <tgrennan@vyatta.com> | 2007-11-06 15:42:57 -0800 |
commit | c9007f34576d54f3c6e915de8e06e052b3f7285a (patch) | |
tree | 4e27abae1760e3788a622b1c64b6de3d1020934b /etc/init.d | |
parent | 0822016a34ac4aa18469fbe4074987a88fe0837a (diff) | |
parent | 80e7697d11308f26dd916bb43b3e062b7dce0aca (diff) | |
download | vyatta-cfg-c9007f34576d54f3c6e915de8e06e052b3f7285a.tar.gz vyatta-cfg-c9007f34576d54f3c6e915de8e06e052b3f7285a.zip |
Merge branch 'master' of http://phuket.vyatta.com/vyatta-cfg
Conflicts:
etc/init.d/vyatta-ofr
Diffstat (limited to 'etc/init.d')
-rwxr-xr-x | etc/init.d/vyatta-ofr | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr index b3dcacd..5e5711a 100755 --- a/etc/init.d/vyatta-ofr +++ b/etc/init.d/vyatta-ofr @@ -137,10 +137,27 @@ load_bootfile () fi } +# this handles the "config dir" (/opt/vyatta/config), which is different +# from the directory for config files (/opt/vyatta/etc/config). +mount_cfg_dir () +{ + if [ ! -d ${vyatta_configdir} ] ; then + mkdir -m 0775 -p ${vyatta_configdir} + chgrp ${GROUP} ${vyatta_configdir} + fi + mount -o nosuid,nodev -t tmpfs none ${vyatta_configdir} +} + +unmount_cfg_dir () +{ + umount ${vyatta_configdir} +} + start () { log_daemon_msg "Starting Vyatta Router" setup_configdir + mount_cfg_dir init_bootfile migrate_bootfile for s in ${subinit[@]} ; do @@ -162,6 +179,7 @@ stop() ${vyatta_sbindir}/${s}.init stop let status\|=$? done + unmount_cfg_dir log_end_msg $status } |