From a82f1f2fa510b1feca0976ef3587bd3a3078d4da Mon Sep 17 00:00:00 2001
From: Daniil Baturin <daniil@baturin.org>
Date: Sat, 2 Nov 2013 22:32:56 +0100
Subject: Remove support for /config on punched card^W^W floppy drive

---
 etc/init.d/vyatta-router | 17 -----------------
 1 file changed, 17 deletions(-)

(limited to 'etc')

diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router
index f36620a..6aac5bc 100755
--- a/etc/init.d/vyatta-router
+++ b/etc/init.d/vyatta-router
@@ -66,23 +66,6 @@ disabled () {
 
 # if necessary, provide initial config
 init_bootfile () {
-    if [ -b /dev/fd0 ] && [ ! -d /media/floppy/config ]
-    then
-        [ -d /media/floppy ] || mkdir -p /media/floppy
-
-	# This mount will try ext2 or fat format
-	# and it will fail if no floppy present
-	# Note: no good way to test for floppy present without causing I/O error
-	mount /dev/fd0 /media/floppy \
-	    -o sync,dirsync,noexec,nodev,noatime,nodiratime,nosuid 2>/dev/null
-    fi
-
-    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
 	CURTIME=$(date +%F-%H%M%S)
-- 
cgit v1.2.3