hacks for supporting the toshiba wrc-1000
[openwrt-10.03/.git] / package / base-files / brcm-2.4 / bin / firstboot
index 28189780bd275b1adfbc459091e7a7ee7e875fb8..b65d3ee98b4c2aad098edd4e6dd1d294f331378e 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id$
+# Copyright (C) 2006 OpenWrt.org
 
 rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
 jffs=$(awk '/jffs2/ {print $2}' /proc/mounts)
@@ -22,7 +22,7 @@ dupe() { # <new_root> <old_root>
                ./rom/note) ;; #nothing
                ./etc/config*|\
                ./etc/resolv.conf|\
-               ./usr/lib/ipkg/info) cp -af $2/$file $file;;
+               ./usr/lib/ipkg/info/*) cp -af $2/$file $file;;
                *) ln -sf /rom/${file#./*} $file;;
                esac
        done