]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/wrt/wrt-init/wrtboot
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / wrt / wrt-init / wrtboot
1 #!/bin/sh
2
3 echo "S" > /proc/jffs2_bbc
4
5 [ "$(nvram get il0macaddr)" = "00:90:4c:5f:00:2a" ] && {
6   # if default wifi mac, set two higher than the lan mac
7   nvram set il0macaddr=$(nvram get et0macaddr|
8   awk '{OFS=FS=":";for(x=7,y=2;--x;){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}')
9 }
10
11 # set up the vlan*ports variables for the asus wl-500g deluxe
12 # if they don't already exist 
13 [ "$(nvram get boardtype)" = "bcm95365r" ] && \
14 [ "$(nvram get boardnum)" = "45" ] && {
15   [ -z "$(nvram get vlan0ports)" ] && \
16   [ -z "$(nvram get vlan1ports)" ] && {
17     nvram set vlan0ports="1 2 3 4 5*"
18     nvram set vlan1ports="0 5"
19   }
20 }
21
22 # well this is not really WRT specific
23 HOSTNAME=`cat /etc/hostname`
24 echo ${HOSTNAME}>/proc/sys/kernel/hostname