Changeset 2750

Show
Ignore:
Timestamp:
06/08/07 17:39:40 (1 year ago)
Author:
tg
Message:

cleanup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/base-files/files/etc/preinit

    r2494 r2750  
    1414# failsafe via hotplug 
    1515trap 'FAILSAFE=true' USR1 
    16 echo '/sbin/hotplug.failsafe' > /proc/sys/kernel/hotplug 
     16echo /sbin/hotplug.failsafe >/proc/sys/kernel/hotplug 
    1717ip link set up dev eth0 
    1818ip addr add 192.168.1.1/24 broadcast 192.168.1.255 dev eth0 
    19 netmsg 192.168.1.255 "Press reset now, to enter Failsafe!" 
     19netmsg 192.168.1.255 "Press reset now to enter Failsafe!" 
    2020echo "Press reset now to enter Failsafe!" 
    2121sleep 2 
    2222eval ${FAILSAFE:+failsafe} 
     23trap - USR1 
    2324 
    2425# reset to normal mode 
     26echo /sbin/hotplug >/proc/sys/kernel/hotplug 
     27mount_root 
     28cat /etc/.rnd >/dev/urandom 2>&1 
     29[ -x /sbin/fwcf ] && fwcf setup 2>&1 | while IFS= read -r line; do 
     30        netmsg 192.168.1.255 "fwcf diag: $line" 
     31done 
    2532ip addr delete 192.168.1.1/24 broadcast 192.168.1.255 dev eth0 
    26 echo '/sbin/hotplug' > /proc/sys/kernel/hotplug 
    27 mount_root  
    28 cat /etc/.rnd >/dev/urandom 2>&1 
    29 [ -x /sbin/fwcf ] && fwcf setup 2>&1 | logger -t fwcf 
    3033exec /sbin/init 
  • trunk/freewrt/package/base-files/files/sbin/hotplug.failsafe

    r2322 r2750  
    11#!/bin/sh 
    2 case "$1" in 
    3        button) kill -USR1 1;; 
     2case $1 in 
     3button) kill -USR1 1;; 
    44esac