Changeset 83201d3 in freewrt


Ignore:
Timestamp:
Jul 17, 2006, 5:08:48 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
82d2266
Parents:
d40cbce
Message:

clean up, fix whitespace, and: unplenk.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@270 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/base-files/default/sbin/failsafe

    rd40cbce r83201d3  
    44netmsg 192.168.1.0 "(dummy message)"
    55netmsg 192.168.1.255 "Press reset now, to enter Failsafe!"
    6 echo "Press reset now, to enter Failsafe for $failsafe_if !"
     6echo "Press reset now to enter Failsafe for ${failsafe_if}!"
    77sleep 2
    88
    9 if [ "$(cat /proc/sys/reset 2>&-)" = 1 -o "$(nvram get failsafe)" = 1 ]; then
    10         while :; do { echo $(((X=(X+1)%8)%2)) > /proc/sys/diag; sleep $((X==0)); }
    11 done &
     9if [ "$(</proc/sys/reset 2>&-)" = 1 -o "$(nvram get failsafe)" = 1 ]; then
     10        while :; do
     11                echo $(((X=(X+1)%8)%2)) >/proc/sys/diag
     12                sleep $((X==0))
     13        done &
    1214        export FAILSAFE=true
    1315        netmsg 192.168.1.255 "Entering Failsafe!"
    14         telnetd -l /bin/login <> /dev/null 2>&1
     16        telnetd -l /bin/login <>/dev/null 2>&1
    1517else
    1618        ifconfig $failsafe_if 0.0.0.0
    17     # revert to the boot loader's vlan config
    18     # required for at least WRT54G v1.1
     19        # revert to the boot loader's vlan config
     20        # required for at least WRT54G v1.1
    1921        [ -d /proc/switch/eth0 ] && {
    20                 echo "$v0p" > /proc/switch/eth0/vlan/0/ports
    21                 echo "$v1p" > /proc/switch/eth0/vlan/1/ports
    22                 echo "$v2p" > /proc/switch/eth0/vlan/2/ports
     22                echo "$v0p" >/proc/switch/eth0/vlan/0/ports
     23                echo "$v1p" >/proc/switch/eth0/vlan/1/ports
     24                echo "$v2p" >/proc/switch/eth0/vlan/2/ports
    2325        }
    2426fi
Note: See TracChangeset for help on using the changeset viewer.