forked from freifunk-franken/firmware
updated config for dir300b
This commit is contained in:
parent
fded9f6777
commit
a125824ae7
|
@ -1,9 +0,0 @@
|
|||
Index: build_dir/target/linux/ramips/rt305x/config-2.6.39
|
||||
===================================================================
|
||||
--- build_dir/target/linux/ramips/rt305x/config-2.6.39 (Revision 28601)
|
||||
+++ build_dir/target/linux/ramips/rt305x/config-2.6.39 (Arbeitskopie)
|
||||
@@ -1,3 +1,4 @@
|
||||
+CONFIG_RFKILL=y
|
||||
# CONFIG_ARCH_DMA_ADDR_T_64BIT is not set
|
||||
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
|
||||
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
|
36
root_file_system/dir300b_adhoc/etc/rc.local
Executable file
36
root_file_system/dir300b_adhoc/etc/rc.local
Executable file
|
@ -0,0 +1,36 @@
|
|||
# Put your custom commands here that should be executed once
|
||||
# the system init finished. By default this file does nothing.
|
||||
|
||||
#Set Mac-Addr of wifi interface if not right
|
||||
HARDWARE_MACADDR=`cat /sys/class/ieee80211/phy0/macaddress`
|
||||
SOFTWARE_MACADDR=`uci get wireless.@wifi-device[0].macaddr`
|
||||
|
||||
if [[ "$HARDWARE_MACADDR" != "$SOFTWARE_MACADDR" ]]; then
|
||||
uci set wireless.@wifi-device[0].macaddr=$HARDWARE_MACADDR
|
||||
uci commit
|
||||
reboot
|
||||
fi
|
||||
|
||||
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
|
36
root_file_system/dir300b_ap/etc/rc.local
Executable file
36
root_file_system/dir300b_ap/etc/rc.local
Executable file
|
@ -0,0 +1,36 @@
|
|||
# Put your custom commands here that should be executed once
|
||||
# the system init finished. By default this file does nothing.
|
||||
|
||||
#Set Mac-Addr of wifi interface if not right
|
||||
HARDWARE_MACADDR=`cat /sys/class/ieee80211/phy0/macaddress`
|
||||
SOFTWARE_MACADDR=`uci get wireless.@wifi-device[0].macaddr`
|
||||
|
||||
if [[ "$HARDWARE_MACADDR" != "$SOFTWARE_MACADDR" ]]; then
|
||||
uci set wireless.@wifi-device[0].macaddr=$HARDWARE_MACADDR
|
||||
uci commit
|
||||
reboot
|
||||
fi
|
||||
|
||||
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
|
Loading…
Reference in New Issue
Block a user