diff options
author | Mohit Mehta <mohit@vyatta.com> | 2011-05-16 16:20:09 -0700 |
---|---|---|
committer | Mohit Mehta <mohit@vyatta.com> | 2011-05-16 16:20:09 -0700 |
commit | b4fb99277cede6287684abd52dd839f5e6d86446 (patch) | |
tree | b4f039c966164d0a756374bd2b3e3532298fa0d4 | |
parent | e4fc18feef1f14e2e17208d303a388e758557f74 (diff) | |
download | vyatta-cfg-b4fb99277cede6287684abd52dd839f5e6d86446.tar.gz vyatta-cfg-b4fb99277cede6287684abd52dd839f5e6d86446.zip |
rectify conditional code
-rwxr-xr-x | etc/init.d/vyatta-router | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router index 87e96f7..4fd3f00 100755 --- a/etc/init.d/vyatta-router +++ b/etc/init.d/vyatta-router @@ -77,10 +77,11 @@ init_bootfile () { -o sync,dirsync,noexec,nodev,noatime,nodiratime,nosuid 2>/dev/null fi - [ -d /media/floppy/config ] && + if [ -d /media/floppy/config ]; then mount -o bind /media/floppy/config /opt/vyatta/etc/config mkdir -p /config mount -o bind /media/floppy/config /config + fi if [ -f $BOOTFILE ] && grep -q '/\*XORP Configuration File, v1.0\*/' \ $BOOTFILE >&/dev/null; then |