Changeset 1cf739c in freewrt
- Timestamp:
- Sep 24, 2006, 4:57:35 AM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 1485212
- Parents:
- 1f1c1d8
- Files:
-
- 3 added
- 1 deleted
- 4 edited
-
package/wireless-tools/Makefile (modified) (2 diffs)
-
package/wireless-tools/files/wireless-tools (added)
-
target/linux/brcm-2.4/asus-wl500g-deluxe/files/.gitignore (deleted)
-
target/linux/brcm-2.4/asus-wl500g-deluxe/files/etc/network/interfaces (added)
-
target/linux/brcm-2.4/asus-wl500g-deluxe/files/etc/preinit.arch (added)
-
target/linux/brcm-2.4/asus-wl500g/files/etc/network/interfaces (modified) (1 diff)
-
target/linux/brcm-2.4/squashfs-symlinks/files/etc/init.d/S20jffsclean (modified) (1 diff)
-
target/linux/brcm-2.4/squashfs-symlinks/files/sbin/mount_root (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
package/wireless-tools/Makefile
r1f1c1d8 r1cf739c 36 36 37 37 $(IPKG_WIRELESS_TOOLS): 38 $(INSTALL_DIR) $(IDIR_WIRELESS_TOOLS)/etc/network/if-pre-up.d 38 39 $(INSTALL_DIR) $(IDIR_WIRELESS_TOOLS)/usr/sbin 39 40 $(INSTALL_DIR) $(IDIR_WIRELESS_TOOLS)/usr/lib … … 44 45 $(INSTALL_BIN) $(WRKINST)/usr/sbin/iwpriv $(IDIR_WIRELESS_TOOLS)/usr/sbin/ 45 46 $(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 46 49 $(RSTRIP) $(IDIR_WIRELESS_TOOLS) 47 50 $(IPKG_BUILD) $(IDIR_WIRELESS_TOOLS) $(PACKAGE_DIR) -
target/linux/brcm-2.4/asus-wl500g/files/etc/network/interfaces
r1f1c1d8 r1cf739c 15 15 network 192.168.10.0 16 16 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 2 2 # if / is tmpfs, we have an old or broken jffs2 3 3 # erase data partition and set flag between bootloader and kernel 4 rom=$(awk '/squashfs/ {print $2}' /proc/mounts) 5 dupe() { # <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 4 32 { mount|grep "on / type tmpfs" 1>&-; } && { 5 33 mtd erase data 34 mount /dev/mtdblock/5 /mnt -t jffs2 35 dupe /mnt $rom 6 36 jffs2root --clean 7 37 reboot -
target/linux/brcm-2.4/squashfs-symlinks/files/sbin/mount_root
r1f1c1d8 r1cf739c 59 59 [ $? != 0 ] && { 60 60 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 62 63 } || { 63 64 echo "jffs2 unusable; using ramdisk"
Note:
See TracChangeset
for help on using the changeset viewer.
