update wpa_supplicant to v0.4.9,
[openwrt.git] / openwrt / package / base-files / default / bin / firstboot
index 1d9b658..2818978 100755 (executable)
@@ -19,10 +19,10 @@ dupe() { # <new_root> <old_root>
        echo -n "setting up symlinks... "
        for file in $(cd $2; find . -xdev -type f;); do
                case "$file" in
-               "./rom/note") ;; #nothing
-               "./etc/config"|\
-               "./etc/resolv.conf"|\
-               "./usr/lib/ipkg/info") cp -af $2/$file $file;;
+               ./rom/note) ;; #nothing
+               ./etc/config*|\
+               ./etc/resolv.conf|\
+               ./usr/lib/ipkg/info) cp -af $2/$file $file;;
                *) ln -sf /rom/${file#./*} $file;;
                esac
        done
@@ -37,6 +37,8 @@ pivot() { # <new_root> <old_root>
        pivot_root $1 $1$2 && {
                mount -o move $2/dev /dev
                mount -o move $2/tmp /tmp
+               mount -o move $2/sys /sys
+               return 0
        }
 }
 
This page took 0.027023 seconds and 4 git commands to generate.