exhanced rc.local
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
#
|
#
|
||||||
# By default this script does nothing.
|
# By default this script does nothing.
|
||||||
|
|
||||||
|
|
||||||
# Print the IP address
|
# Print the IP address
|
||||||
_IP=$(hostname -I) || true
|
_IP=$(hostname -I) || true
|
||||||
if [ "$_IP" ]; then
|
if [ "$_IP" ]; then
|
||||||
@@ -18,4 +19,8 @@ if [ "$_IP" ]; then
|
|||||||
/home/pi/bin/notify_boot.sh "$_IP"
|
/home/pi/bin/notify_boot.sh "$_IP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
/sbin/route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.10.1 dev wlan0|| true
|
||||||
|
/bin/mount -a || true
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user