freewrt_1_0
freewrt_2_0
|
Last change
on this file since db5651c was db5651c, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago |
|
merge wbx-target-cleanup to trunk.
- mk directory for some top level makefiles (build.mk,vars.mk)
- add a separate configfs partition to all models, 128 kb big
- add model and platform specific startup files and kernel configs
- delete target/linux/package, add all addon kernel packages to packages
- simplify target/linux/brcm-2.4/Makefile, abstraction to mk/ comes later
- add target/image directory, place where the different images are created
- default off for all extra packages, be sure that you enable all packages
you need to get a dsl-capable router. snapshots will be created by a specific config which contains all needed stuff (iptables, pppoe, pptp, haserl, webif)
git-svn-id: svn://www.freewrt.org/trunk/freewrt@588 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100755
|
|
File size:
691 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | . /etc/functions.sh
|
|---|
| 3 |
|
|---|
| 4 | [ -f /proc/jffs2_bbc ] && echo S >/proc/jffs2_bbc
|
|---|
| 5 |
|
|---|
| 6 | mkdir -p /var/run
|
|---|
| 7 | mkdir -p /var/log
|
|---|
| 8 | touch /var/log/wtmp
|
|---|
| 9 | touch /var/log/lastlog
|
|---|
| 10 | [ "$FAILSAFE" = true ] && touch /tmp/.failsafe
|
|---|
| 11 |
|
|---|
| 12 | load_modules /etc/modules /etc/modules.d/*
|
|---|
| 13 |
|
|---|
| 14 | ifconfig lo 127.0.0.1 up
|
|---|
| 15 | ifconfig eth0 promisc
|
|---|
| 16 |
|
|---|
| 17 | # configure the switch based on nvram
|
|---|
| 18 | [ -d /proc/switch/eth0 ] && for nr in $(seq 0 15); do
|
|---|
| 19 | vp="$(nvram get vlan${nr}ports)"
|
|---|
| 20 | [ -z "$vp" -o -z "$(nvram get vlan${nr}hwname)" ] || \
|
|---|
| 21 | echo "$vp" >/proc/switch/eth0/vlan/$nr/ports
|
|---|
| 22 | done
|
|---|
| 23 |
|
|---|
| 24 | HOSTNAME=$(cat /etc/hostname)
|
|---|
| 25 | HOSTNAME=${HOSTNAME%%.*}
|
|---|
| 26 | echo ${HOSTNAME:=FreeWRT} >/proc/sys/kernel/hostname
|
|---|
| 27 |
|
|---|
| 28 | vconfig set_name_type VLAN_PLUS_VID_NO_PAD
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.