X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/676c017ecfced2e37aeec176f8aa6b9df90024f3..9e0015224dd9496dcbeef5c6eaa5af7232ff7b9b:/package/base-files/default/bin/firstboot diff --git a/package/base-files/default/bin/firstboot b/package/base-files/default/bin/firstboot index 1d9b658b6..28189780b 100755 --- a/package/base-files/default/bin/firstboot +++ b/package/base-files/default/bin/firstboot @@ -19,10 +19,10 @@ dupe() { # 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() { # 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 } }