X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3d007394805916ceb2214bfd7e06d8a4899262c5..9c827a68c1fb88ce9cf47fe9d944c788390b8e70:/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 cef258cf3..0828bdabe 100755 --- a/openwrt/package/base-files/default/bin/firstboot +++ b/openwrt/package/base-files/default/bin/firstboot @@ -42,11 +42,10 @@ echo "done" echo -n "setting up symlinks... " for file in $(cd /rom; find * -type f; find * -type l;) do { - [ "${file%/*}" = "usr/lib/ipkg/info" ] && { - cp -f /rom/$file $file - } || { - ln -sf /rom/$file $file - } + case "${file%/*}" in + "usr/lib/ipkg/info"|"etc/config") cp -f /rom/$file $file;; + *) ln -sf /rom/$file $file;; + esac } done echo "done"