diff options
author | Rod Whitby <rod@whitby.id.au> | 2004-12-25 14:30:52 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2004-12-25 14:30:52 +0000 |
commit | 4b5c65e343f5a1189baa3ddc259c0fcb7cc8c2bf (patch) | |
tree | 58be088a70259f7164aaf7dd466c97496018dcd6 /packages/nslu2-binary-only | |
parent | 245869e7519ff153fdc38de7431cc04cc86aaf33 (diff) |
Added CHROOT and NFSMOUNT to switchbox
BKrev: 41cd799c44P6k0h5bDIN_5heL11nLA
Diffstat (limited to 'packages/nslu2-binary-only')
-rw-r--r-- | packages/nslu2-binary-only/unslung-rootfs-2.3r25/maintmode.cgi | 20 |
1 files changed, 20 insertions, 0 deletions
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 |