From b4fb99277cede6287684abd52dd839f5e6d86446 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Mon, 16 May 2011 16:20:09 -0700 Subject: rectify conditional code --- etc/init.d/vyatta-router | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc') 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 -- cgit v1.2.3