mirror of https://github.com/OpenIPC/firmware.git
30 lines
534 B
Bash
Executable File
30 lines
534 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$1" in
|
|
start)
|
|
date -s @$(grep TIME_STAMP /etc/os-release | cut -d= -f2)
|
|
|
|
if [ ! -e /etc/custom.ok ] && [ -e /usr/share/openipc/customizer.sh ]; then
|
|
echo "Run customizer script..."
|
|
sh /usr/share/openipc/customizer.sh
|
|
touch /etc/custom.ok
|
|
fi
|
|
|
|
if [ ! -e /etc/network.ok ] && [ -e /usr/share/openipc/wireless.sh ]; then
|
|
echo "Run wireless script..."
|
|
sh /usr/share/openipc/wireless.sh
|
|
touch /etc/network.ok
|
|
fi
|
|
|
|
check_mac
|
|
;;
|
|
|
|
stop)
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: $0 {start}"
|
|
exit 1
|
|
;;
|
|
esac
|