Changeset 82d2266 in freewrt for package


Ignore:
Timestamp:
Jul 17, 2006, 5:19:26 AM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
15d8ea1
Parents:
83201d3
Message:

use old S10boot

git-svn-id: svn://www.freewrt.org/trunk/freewrt@271 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/base-files/default/etc/init.d/S10boot

    r83201d3 r82d2266  
    33
    44[ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
    5 vconfig set_name_type VLAN_PLUS_VID_NO_PAD
    6 
    7 HOSTNAME=${wan_hostname%%.*}
    8 echo ${HOSTNAME:=FreeWRT}>/proc/sys/kernel/hostname
    95
    106mkdir -p /var/run
     
    1410[ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
    1511
    16 for iface in $(/sbin/ifconfig -a | awk '{print $1}' | grep eth); do
    17         /usr/bin/env -i ACTION=add INTERFACE="$iface" /sbin/hotplug net
    18 done
    19 
    2012load_modules /etc/modules /etc/modules.d/*
    2113
     
    2315ifconfig eth0 promisc
    2416
     17# configure the switch based on nvram
     18[ -d /proc/switch/eth0 ] && {
     19        for nr in $(seq 0 15); do
     20                vp="$(nvram get vlan${nr}ports)"
     21                [ -z "$vp" -o -z "$(nvram get vlan${nr}hwname)" ] || {
     22                        echo "$vp" > /proc/switch/eth0/vlan/$nr/ports
     23                }
     24        done
     25}
     26
     27HOSTNAME=$(nvram get wan_hostname)
     28HOSTNAME=${HOSTNAME%%.*}
     29echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname
     30
     31vconfig set_name_type VLAN_PLUS_VID_NO_PAD
Note: See TracChangeset for help on using the changeset viewer.