#!/bin/sh /etc/rc.common # This file is part of the Doodle3D project (http://doodle3d.com). # # Copyright (c) 2013, Doodle3D # This software is licensed under the terms of the GNU GPL v2 or later. # See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details. # start after networking START=22 LOGGER="logger -t autowifi -p 6" boot() { sleep 1 $LOGGER "Invoking Doodle3D WiFi box network auto-initialization..." /usr/share/lua/wifibox/script/d3dapi autowifi } 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 }