From 967e607b51c608f6f4dabb19ec54acdea1940bfe Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Fri, 14 Feb 2014 13:54:33 +0000 Subject: [PATCH] exhanced rc.local --- tpl/etc/rc.local | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tpl/etc/rc.local b/tpl/etc/rc.local index 6a274f8..ca4a696 100755 --- a/tpl/etc/rc.local +++ b/tpl/etc/rc.local @@ -11,11 +11,16 @@ # # By default this script does nothing. + # Print the IP address _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" - /home/pi/bin/notify_boot.sh "$_IP" + /home/pi/bin/notify_boot.sh "$_IP" 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