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 | sed 's,[ ]*\([0-9]*\).*,\1,'`
12 return 1 # No such process
14 echo "killing pid $pid for $label"
20 # Function to start a daemon, if it exists.
23 test "$1" = tcpd
&& name
="$2"
30 # check if this service is disabled at the boot monitor.
31 if disabled
$name; then return; fi
43 for skip
in `sysenv disable`
63 # Wait a moment to let daemons clean themselves up
65 if [ X
`/bin/sysenv lwip` = Xyes
]
67 service up
/service
/lwip
-script /etc
/rs.inet
-dev /dev
/ip
70 service up
/service
/inet
-script /etc
/rs.inet
-dev /dev
/ip
76 # Restart SSH daemon if installed and running
77 if [ -f /usr
/pkg
/etc
/rc.d
/sshd
]
79 /usr
/pkg
/etc
/rc.d
/sshd status |
grep -v not
> /dev
/null
82 /usr
/pkg
/etc
/rc.d
/sshd restart