Changeset e4ba301 in freewrt


Ignore:
Timestamp:
Jul 9, 2006, 3:58:53 PM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
5642350
Parents:
141418f
Message:
  • 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

Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • package/base-files/default/bin/firstboot

    r141418f re4ba301  
    5050}
    5151
     52fopivot() { # <rw_root> <ro_root> <dupe?>
     53        root=$1
     54    {
     55      mount -t mini_fo -o base=/,sto=$1 $1 /mnt 2>&- && root=/mnt
     56    } || {
     57      [ "$3" = "1" ] && mount -o bind $1 $1 && dupe $1 $rom
     58    }
     59    pivot $root $2
     60}
     61
     62
    5263ramoverlay() {
    5364        mkdir -p /tmp/root
  • package/base-files/default/etc/init.d/rcS

    r141418f re4ba301  
    22${FAILSAFE:+exit}
    33
    4 [ -f /etc/config/network ] && . /etc/config/network
    5 eval $(ipcalc "$log_ipaddr")
    6 [ "$log_ipaddr" = "$IP" ] || log_ipaddr=""
    7 syslogd -C 16 ${log_ipaddr:+-L -R $log_ipaddr}
     4syslogd -C 16
    85klogd
    9 #${FAILSAFE:+telnetd -l /bin/login; ifup lan; exit}
     6
    107for i in /etc/init.d/S*; do
    118  $i start 2>&1
  • package/base-files/default/etc/preinit

    r141418f re4ba301  
    22export PATH=/bin:/sbin:/usr/bin:/usr/sbin
    33mount none /proc -t proc
    4 
    5 [ -f /etc/preinit.arch ] && . /etc/preinit.arch
    6 [ -z "$FAILSAFE" ] || {
    7         echo /bin/true > /proc/sys/kernel/hotplug
    8         telnetd -l /bin/login <> /dev/null 2>&1
    9 }
     4[ -f /etc/preinit.arch ] && /etc/preinit.arch
     5failsafe
     6insmod mini_fo 2>&-
    107mount_root ${FAILSAFE:+failsafe}
    118exec /sbin/init
  • package/base-files/default/etc/profile

    r141418f re4ba301  
    88[ -x /usr/bin/vim ] || alias vim=vi
    99
    10 arp() { cat /proc/net/arp; }
    11 ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
     10[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
     11[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
    1212reboot() { ifdown wan 2>&1 >/dev/null ; /sbin/reboot; }
  • package/base-files/default/sbin/mount_root

    r141418f re4ba301  
    2525                        echo "switching to jffs2"
    2626                        mount /dev/mtdblock/4 /jffs -t jffs2
    27                         pivot /jffs /rom
     27                        fopivot /jffs /rom
    2828                } || {
    2929                        echo "jffs2 unusable; using ramdisk"
  • target/linux/image/Makefile

    r141418f re4ba301  
    4040        find $(KDIR)/root -type f -perm -0100 | xargs chmod 0755
    4141        find $(KDIR)/root -type d | xargs chmod 0755
    42         chmod 4775 $(KDIR)/root/bin/busybox
     42        chmod 4755 $(KDIR)/root/bin/busybox
    4343        mkdir -p $(KDIR)/root/tmp
    4444        chmod 0777 $(KDIR)/root/tmp
Note: See TracChangeset for help on using the changeset viewer.