summaryrefslogtreecommitdiffstats
path: root/openwrt/package/base-files/default/bin/firstboot
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/base-files/default/bin/firstboot')
-rwxr-xr-xopenwrt/package/base-files/default/bin/firstboot9
1 files changed, 4 insertions, 5 deletions
diff --git a/openwrt/package/base-files/default/bin/firstboot b/openwrt/package/base-files/default/bin/firstboot
index 1c3d1a7d6..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" -o "${file%/*}" = "etc/config" ] && {
- 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"