Changeset 1cf739c in freewrt


Ignore:
Timestamp:
Sep 24, 2006, 4:57:35 AM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
1485212
Parents:
1f1c1d8
Message:

fix squashfs-symlink, add network configuration for asus wl500g deluxe, add pre-up wireless script

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

Files:
3 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • package/wireless-tools/Makefile

    r1f1c1d8 r1cf739c  
    3636
    3737$(IPKG_WIRELESS_TOOLS):
     38        $(INSTALL_DIR) $(IDIR_WIRELESS_TOOLS)/etc/network/if-pre-up.d
    3839        $(INSTALL_DIR) $(IDIR_WIRELESS_TOOLS)/usr/sbin
    3940        $(INSTALL_DIR) $(IDIR_WIRELESS_TOOLS)/usr/lib
     
    4445        $(INSTALL_BIN) $(WRKINST)/usr/sbin/iwpriv $(IDIR_WIRELESS_TOOLS)/usr/sbin/
    4546        $(INSTALL_BIN) $(WRKINST)/usr/sbin/iwspy $(IDIR_WIRELESS_TOOLS)/usr/sbin/
     47        $(INSTALL_BIN) ./files/wireless-tools \
     48                $(IDIR_WIRELESS_TOOLS)/etc/network/if-pre-up.d
    4649        $(RSTRIP) $(IDIR_WIRELESS_TOOLS)
    4750        $(IPKG_BUILD) $(IDIR_WIRELESS_TOOLS) $(PACKAGE_DIR)
  • target/linux/brcm-2.4/asus-wl500g/files/etc/network/interfaces

    r1f1c1d8 r1cf739c  
    1515        network 192.168.10.0
    1616        broadcast 192.168.10.255
     17        wireless_essid FreeWRT
     18        wireless_mode managed
     19        wireless_channel 11
  • target/linux/brcm-2.4/squashfs-symlinks/files/etc/init.d/S20jffsclean

    r1f1c1d8 r1cf739c  
    22# if / is tmpfs, we have an old or broken jffs2
    33# erase data partition and set flag between bootloader and kernel
     4rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
     5dupe() { # <new_root> <old_root>
     6        cd $1
     7        echo -n "creating directories... "
     8        {
     9                cd $2
     10                find . -xdev -type d
     11                echo "./dev ./jffs ./mnt ./proc ./tmp"
     12                # xdev skips mounted directories
     13                cd $1
     14        } | xargs mkdir -p
     15        echo "done"
     16
     17        echo -n "setting up symlinks... "
     18        for file in $(cd $2; find . -xdev -type f;); do
     19                case "$file" in
     20                ./rom/note) ;; #nothing
     21                ./etc/resolv.conf|\
     22                ./usr/lib/ipkg/info) cp -af $2/$file $file;;
     23                *) ln -sf /rom/${file#./*} $file;;
     24                esac
     25        done
     26        for file in $(cd $2; find . -xdev -type l;); do
     27                cp -af $2/${file#./*} $file
     28        done
     29        echo "done"
     30}
     31
    432{ mount|grep "on / type tmpfs" 1>&-; } && {
    533        mtd erase data
     34        mount /dev/mtdblock/5 /mnt -t jffs2
     35        dupe /mnt $rom
    636        jffs2root --clean
    737        reboot
  • target/linux/brcm-2.4/squashfs-symlinks/files/sbin/mount_root

    r1f1c1d8 r1cf739c  
    5959        [ $? != 0 ] && {
    6060                echo "switching to jffs2 filesystem"
    61                 mountdp /dev/mtdblock/5 /jffs -t jffs2
     61                mount -t jffs2 /dev/mtdblock/5 /jffs
     62                pivot /jffs /rom
    6263        } || {
    6364                echo "jffs2 unusable; using ramdisk"
Note: See TracChangeset for help on using the changeset viewer.