source: trunk/root/etc/init.d/S10boot @ 94

Last change on this file since 94 was 94, checked in by mbm, 12 years ago

split ifup/ifdown/wifi into standalone scripts

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 622 bytes
Line 
1#!/bin/sh
2sysctl -p
3echo "S" > /proc/jffs2_bbc
4
5mkdir -p /var/run
6
7# networking stub
8[ "$(nvram get il0macaddr)" = "00:90:4c:5f:00:2a" ] && {
9  # force unique wireless mac
10  nvram set il0macaddr=$(nvram get et0macaddr|
11  awk '{OFS=FS=":";for(x=6,y=2;x;x--){$x=sprintf("%02x",(y+="0x"$x)%256);y/=256}print}')
12}
13
14insmod et
15insmod wl
16
17ifconfig lo 127.0.0.1 up
18ifconfig eth0 promisc
19
20HOSTNAME=$(nvram get wan_hostname)
21DOMAINNAME=${HOSTNAME##*.}
22HOSTNAME=${HOSTNAME%%.*}
23
24echo ${HOSTNAME:=OpenWrt} > /proc/sys/kernel/hostname
25echo ${DOMAINNAME:=lan}   > /proc/sys/kernel/domainname
26
27vconfig set_name_type VLAN_PLUS_VID_NO_PAD
Note: See TracBrowser for help on using the repository browser.