X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/93701b2bec2b99d8113d8a6d9b97153e87a7e5aa..88d99188b8fdc9b172b74e41db418a9b85b13ae0:/openwrt/package/base-files/default/bin/firstboot diff --git a/openwrt/package/base-files/default/bin/firstboot b/openwrt/package/base-files/default/bin/firstboot index 1d9b658b6..28189780b 100755 --- a/openwrt/package/base-files/default/bin/firstboot +++ b/openwrt/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 } }