mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2025-01-03 16:23:49 +01:00
9e0eab1f8d
Clean up package Makefile (it installed and removed too much).
30 lines
581 B
Bash
Executable File
30 lines
581 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
# start after networking
|
|
START=22
|
|
|
|
LOGGER="logger -s -t autowifi -p 6"
|
|
|
|
boot() {
|
|
sleep 1
|
|
|
|
$LOGGER "Invoking Doodle3D WiFi box network auto-initialization..."
|
|
/usr/share/lua/wifibox/script/d3dapi autowifi
|
|
|
|
$LOGGER "Start signing in..."
|
|
/usr/share/lua/wifibox/script/signin.sh > /dev/null 2> /dev/null &
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
stop() {
|
|
$LOGGER "Stop signing in..."
|
|
killall signin.sh
|
|
}
|