2013-04-04 10:18:08 +02:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
|
2013-08-26 09:53:58 +02:00
|
|
|
# start after networking
|
|
|
|
START=22
|
|
|
|
|
2013-04-09 14:37:31 +02:00
|
|
|
LOGGER="logger -s -t autowifi -p 6"
|
2013-04-04 10:18:08 +02:00
|
|
|
|
2013-04-09 14:37:31 +02:00
|
|
|
boot() {
|
2013-10-04 16:29:53 +02:00
|
|
|
sleep 1
|
|
|
|
|
2013-08-20 22:38:16 +02:00
|
|
|
$LOGGER "Invoking Doodle3D WiFi box network auto-initialization..."
|
2013-07-25 01:06:00 +02:00
|
|
|
/usr/share/lua/wifibox/script/d3dapi autowifi
|
2013-10-22 22:44:51 +02:00
|
|
|
|
2013-09-27 18:38:31 +02:00
|
|
|
$LOGGER "Start signing in..."
|
|
|
|
/usr/share/lua/wifibox/script/signin.sh > /dev/null 2> /dev/null &
|
2013-04-04 10:18:08 +02:00
|
|
|
}
|
|
|
|
|
2013-10-22 22:44:51 +02:00
|
|
|
start() {
|
|
|
|
ps | awk '{print $5}' | grep '{signin.sh}'
|
|
|
|
if [ $? -eq 1 ]; then
|
|
|
|
$LOGGER "Start signing in..."
|
|
|
|
/usr/share/lua/wifibox/script/signin.sh > /dev/null 2> /dev/null &
|
|
|
|
fi
|
|
|
|
}
|
2013-04-09 14:37:31 +02:00
|
|
|
|
2013-10-22 22:44:51 +02:00
|
|
|
stop() {
|
|
|
|
$LOGGER "Stop signing in..."
|
|
|
|
killall signin.sh
|
|
|
|
}
|