From 9ebd938a2da62b20523c4895420924bb3bfb9383 Mon Sep 17 00:00:00 2001 From: floh1111 Date: Thu, 3 Nov 2011 11:07:19 +0000 Subject: [PATCH] Add own rc.local for wrt54g to set fixed mac address on br-mesh --- root_file_system/wrt54g_adhoc/etc/rc.local | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 root_file_system/wrt54g_adhoc/etc/rc.local diff --git a/root_file_system/wrt54g_adhoc/etc/rc.local b/root_file_system/wrt54g_adhoc/etc/rc.local new file mode 100755 index 0000000..2ca896c --- /dev/null +++ b/root_file_system/wrt54g_adhoc/etc/rc.local @@ -0,0 +1,31 @@ +# Put your custom commands here that should be executed once +# the system init finished. By default this file does nothing. + +#set fixed mac address on br-mesh so that the ipv6 addres does not change after every reboot +HARDWARE_MACADDR=`ifconfig -a br-mesh | grep 'HWaddr' | awk '{ print $5}'` +uci set network.mesh.macaddr=$HARDWARE_MACADDR +uci commit + +ifconfig br-mesh down +ifconfig br-mesh up + +ifdown lan +ifup lan + +rdate -s time.fu-berlin.de + +chown root.root /etc/crontabs/root +/etc/init.d/cron stop +/etc/init.d/cron start + +sh /etc/firewall.user + +/etc/init.d/qos disable +/etc/init.d/qos stop + +#busybox-httpd for crawldata +httpd -h /tmp/ + +sh /etc/configurator.sh + +exit 0