mirror of
https://github.com/femtofox/femtofox.git
synced 2026-10-26 19:02:00 -04:00
Added reporting on network status to rc.local for user info. commented out for now.
This commit is contained in:
parent
ab8d4fc6b0
commit
fd8a2863e0
2 changed files with 14 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ echo "[1;32m*** $(date "+%H:%M:%S %Z"): Disabled redundant services ***\e[0m\n"
|
|||
echo "[1;32m*** $(date "+%H:%M:%S %Z"): Changing Luckfox system config ***\e[0m\n"
|
||||
sudo mv luckfox.cfg /etc/
|
||||
sudo luckfox-config load
|
||||
echo "[1;32m*** $(date "+%H:%M:%S %Z"): Set Luckfox system config ***\e[0m\n"
|
||||
echo "[1;32m*** $(date "+%H:%M:%S %Z"): Set and loaded Luckfox system config ***\e[0m\n"
|
||||
|
||||
sudo hostname femtofox
|
||||
echo "[1;32m*** $(date "+%H:%M:%S %Z"): Set hostname to femtofox ***\e[0m\n"
|
||||
|
|
|
|||
|
|
@ -14,6 +14,19 @@ echo 'ds1307 0x68' | sudo tee /sys/class/i2c-adapter/i2c-3/new_device > /dev/nul
|
|||
# activating USER LED
|
||||
echo 34 > /sys/class/gpio/export && echo out > /sys/class/gpio/gpio34/direction &
|
||||
|
||||
# (
|
||||
# if ip addr show wlan0 | grep -q 'inet '; then
|
||||
# echo "Wifi (wlan0) is online";
|
||||
# else
|
||||
# echo "Wifi (wlan0) is offline";
|
||||
# fi
|
||||
# if ip addr show eth0 | grep -q 'inet '; then
|
||||
# echo "Built-in ethernet (eth0) is online";
|
||||
# else
|
||||
# echo "Built-in ethernet (eth0) is offline";
|
||||
# fi
|
||||
# ) &
|
||||
|
||||
#if RTC recognized
|
||||
if ls /dev/rtc* 1> /dev/null 2>&1; then
|
||||
rtc="true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue