source: freewrt/package/base-files/files/sbin/failsafe@ a67536b

freewrt_1_0 freewrt_2_0
Last change on this file since a67536b was a67536b, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • add busybox ip as default for network configuration (suggested by Dirk and Markus, used some of the patches)
  • fix dropbear startup script
  • disable some more ipv6 apps (we need a ipv6 package collection..)

Failsafe, LAN ip address and dhcp on wan works fine.
ifconfig/route is disabled, we added some aliases for
backward compatibility. A modern linux distribution should
use modern network configuration tools.

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@823 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100755
File size: 419 bytes
Line 
1#!/bin/sh
2
3ip link set up dev eth0
4ip addr add 192.168.1.1/24 broadcast 192.168.1.255 dev eth0
5netmsg 192.168.1.255 "Press reset now, to enter Failsafe!"
6echo "Press reset now to enter Failsafe!"
7sleep 2
8
9if [ $(cat /proc/sys/reset) = 1 ]; then
10 while :; do
11 echo $(((X=(X+1)%8)%2)) >/proc/sys/diag
12 sleep $((X==0))
13 done &
14 netmsg 192.168.1.255 "Entering Failsafe!"
15 telnetd
16 exit 1
17else
18 ip addr flush dev eth0
19fi
Note: See TracBrowser for help on using the repository browser.