mirror of
https://github.com/femtofox/femtofox.git
synced 2026-11-20 15:06:36 -05:00
Update rc.local
This commit is contained in:
parent
eabf6d66be
commit
aa8389ed0e
1 changed files with 11 additions and 11 deletions
|
|
@ -28,17 +28,17 @@ echo 'ds1307 0x68' | sudo tee /sys/class/i2c-adapter/i2c-3/new_device > /dev/nul
|
|||
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 "Onboard ethernet (eth0) is online.";
|
||||
else
|
||||
echo "Onboard ethernet (eth0) is offline.";
|
||||
fi
|
||||
) &
|
||||
# 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 "Onboard ethernet (eth0) is online.";
|
||||
# else
|
||||
# echo "Onboard ethernet (eth0) is offline.";
|
||||
# fi
|
||||
# ) &
|
||||
|
||||
# if RTC recognized
|
||||
if ls /dev/rtc* 1> /dev/null 2>&1; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue