3 # Recovery script for INET/lwip. It restarts daemons dependent on it in order
4 # to recover TCP state.
9 pid
=`ps ax | grep "$label" | grep -v grep |
10 sed 's,[ ]*\([0-9]*\).*,\1,`
13 return 1 # No such process
15 echo "killing pid $pid for $label"
21 # Function to start a daemon, if it exists.
24 test "$1" = tcpd
&& name
="$2"
31 # check if this service is disabled at the boot monitor.
32 if disabled
$name; then return; fi
44 for skip
in `sysenv disable`
64 # Wait a moment to let daemons clean themselves up
66 if [ X
`/bin/sysenv lwip` = Xyes
]
68 service up
/usr
/sbin
/lwip
-script /etc
/rs.inet
-dev /dev
/ip
-devstyle STYLE_CLONE_A
71 service up
/usr
/sbin
/inet
-script /etc
/rs.inet
-dev /dev
/ip
-devstyle STYLE_CLONE
77 # Restart SSH daemon if installed and running
78 if [ -f /usr
/pkg
/etc
/rc.d
/sshd
]
80 /usr
/pkg
/etc
/rc.d
/sshd status |
grep -v not
> /dev
/null
83 /usr
/pkg
/etc
/rc.d
/sshd restart