freewrt_1_0
freewrt_2_0
|
Last change
on this file since e4ba301 was e4ba301, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago |
- add a specific preinit.arch which executes brcm specific stuff
- for squashfs based images, use mini_fo as default, no ugly symlinks anymore
- add a "version" command, which can be used later, to exactly know which
FreeWRT version is used (good for postinst scripts and bugreports),
some users like to recreate the shell banner, but still need to know which
version is used
- remove nvram sepcific stuff from some of the startup scripts, like
syslogd startup params
- add some checks if ldd / arp is installed in /etc/profile
git-svn-id: svn://www.freewrt.org/trunk/freewrt@182 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
950 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | [ "$(nvram get boot_wait)" != "on" ] && {
|
|---|
| 4 | nvram set boot_wait=on
|
|---|
| 5 | nvram commit
|
|---|
| 6 | }
|
|---|
| 7 |
|
|---|
| 8 | insmod diag
|
|---|
| 9 | echo 0x01 > /proc/sys/diag
|
|---|
| 10 |
|
|---|
| 11 | failsafe_if="eth0"
|
|---|
| 12 | # WAP54G, WL-HDD
|
|---|
| 13 | [ "$(nvram get boardnum)" = "2" \
|
|---|
| 14 | -o \( "$(nvram get boardnum)" = "asusX" \
|
|---|
| 15 | -a "$(nvram get et1phyaddr)" -eq 1 \) ] && failsafe_if="eth1"
|
|---|
| 16 |
|
|---|
| 17 | insmod switch-core
|
|---|
| 18 | insmod switch-robo || insmod switch-adm || rmmod switch-core
|
|---|
| 19 |
|
|---|
| 20 | # save the boot loader's vlan config
|
|---|
| 21 | # we need it on some routers that have no vlan*ports set
|
|---|
| 22 | [ -d /proc/switch/eth0 ] && {
|
|---|
| 23 | v0p="$(cat /proc/switch/eth0/vlan/0/ports)"
|
|---|
| 24 | v1p="$(cat /proc/switch/eth0/vlan/1/ports)"
|
|---|
| 25 | v2p="$(cat /proc/switch/eth0/vlan/2/ports)"
|
|---|
| 26 | echo 1 > /proc/switch/eth0/reset
|
|---|
| 27 |
|
|---|
| 28 | case "$(nvram get boardtype)" in
|
|---|
| 29 | 0x0467|0x042f) echo "0 1 2 3 5u*";;
|
|---|
| 30 | *) echo "1 2 3 4 5u*";;
|
|---|
| 31 | esac > /proc/switch/eth0/vlan/0/ports
|
|---|
| 32 | export v0p v1p v2p
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
| 35 | export failsafe_if
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.