fix firstboot checks for files to copy instead of symlink (ported from buildroot-ng)
authorFelix Fietkau <nbd@openwrt.org>
Wed, 4 Oct 2006 22:23:26 +0000 (22:23 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 4 Oct 2006 22:23:26 +0000 (22:23 +0000)
SVN-Revision: 4920

openwrt/package/base-files/default/bin/firstboot

index 7bbf014b5a7d0b373833fa141e9194ca7b8a16ef..02d941fe9840323e9056719ba500d4db13d38616 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