summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2004-12-25 14:30:52 +0000
committerRod Whitby <rod@whitby.id.au>2004-12-25 14:30:52 +0000
commit4b5c65e343f5a1189baa3ddc259c0fcb7cc8c2bf (patch)
tree58be088a70259f7164aaf7dd466c97496018dcd6
parent245869e7519ff153fdc38de7431cc04cc86aaf33 (diff)
Added CHROOT and NFSMOUNT to switchbox
BKrev: 41cd799c44P6k0h5bDIN_5heL11nLA
-rw-r--r--packages/busybox/switchbox-1.00/defconfig4
-rw-r--r--packages/nslu2-binary-only/unslung-rootfs-2.3r25/maintmode.cgi20
2 files changed, 22 insertions, 2 deletions
diff --git a/packages/busybox/switchbox-1.00/defconfig b/packages/busybox/switchbox-1.00/defconfig
index 222ff1338a..a757d731cd 100644
--- a/packages/busybox/switchbox-1.00/defconfig
+++ b/packages/busybox/switchbox-1.00/defconfig
@@ -60,7 +60,7 @@ CONFIG_CAT=y
# CONFIG_CHGRP is not set
# CONFIG_CHMOD is not set
# CONFIG_CHOWN is not set
-# CONFIG_CHROOT is not set
+CONFIG_CHROOT=y
# CONFIG_CMP is not set
CONFIG_CP=y
# CONFIG_CUT is not set
@@ -341,7 +341,7 @@ CONFIG_PIVOT_ROOT=y
# CONFIG_RDATE is not set
# CONFIG_SWAPONOFF is not set
CONFIG_MOUNT=y
-# CONFIG_NFSMOUNT is not set
+CONFIG_NFSMOUNT=y
CONFIG_UMOUNT=y
# CONFIG_FEATURE_MOUNT_FORCE is not set
diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/maintmode.cgi b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/maintmode.cgi
index e69de29bb2..ca1c037160 100644
--- a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/maintmode.cgi
+++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/maintmode.cgi
@@ -0,0 +1,20 @@
+#!/bin/sh
+FLAG=.ramdisk
+echo "Content-type: text/html
+
+<HTML> <HEAD> <TITLE>TOGGLING MAINTENANCE MODE</TITLE> </HEAD> <BODY> <H1>"
+if [ -f /$FLAG ] ; then
+ echo "REBOOTING IN NORMAL MODE"
+ mkdir /mnt/maint
+ mount -t jffs2 /dev/mtdblock4 /mnt/maint
+ rm /mnt/maint/$FLAG
+else
+ echo "REBOOTING IN MAINTENANCE MODE"
+ touch /$FLAG
+fi
+echo " </H1> </BODY> </HTML>"
+echo
+
+sleep 2
+
+/usr/sbin/DO_Reboot