X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/426c7ee0331af1eb24294a283ac9b3d64a772160..a64cf0adff673a21bce78cafb2e3ec15b59faec7:/openwrt/target/default/target_skeleton/bin/firstboot diff --git a/openwrt/target/default/target_skeleton/bin/firstboot b/openwrt/target/default/target_skeleton/bin/firstboot index 8bb0b3efa..cef258cf3 100755 --- a/openwrt/target/default/target_skeleton/bin/firstboot +++ b/openwrt/target/default/target_skeleton/bin/firstboot @@ -1,6 +1,11 @@ #!/bin/sh # $Id$ +mount | grep squashfs >&- || { + echo "You do not have a squashfs partition; aborting" + echo "(firstboot cannot be run on jffs2 based firmwares)" + return +} [ -f "/tmp/.firstboot" ] && { echo "firstboot is already running" @@ -45,12 +50,6 @@ do { } done echo "done" -echo -n "fixing ipkg symlinks... " -for file in $( find /usr/lib/ipkg/info/*list -type l;) -do { - rm $file; cp -f /rom/$file $file -} done - touch /tmp/resolv.conf ln -s /tmp/resolv.conf /etc/resolv.conf