From 4b5c65e343f5a1189baa3ddc259c0fcb7cc8c2bf Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sat, 25 Dec 2004 14:30:52 +0000 Subject: Added CHROOT and NFSMOUNT to switchbox BKrev: 41cd799c44P6k0h5bDIN_5heL11nLA --- .../unslung-rootfs-2.3r25/maintmode.cgi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'packages/nslu2-binary-only') 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 + + TOGGLING MAINTENANCE MODE

" +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 "

" +echo + +sleep 2 + +/usr/sbin/DO_Reboot -- cgit v1.2.3