summaryrefslogtreecommitdiffstats
path: root/minikrebs/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'minikrebs/profiles')
-rwxr-xr-xminikrebs/profiles/init14
1 files changed, 13 insertions, 1 deletions
diff --git a/minikrebs/profiles/init b/minikrebs/profiles/init
index f20e9b75..eb5fa2af 100755
--- a/minikrebs/profiles/init
+++ b/minikrebs/profiles/init
@@ -8,6 +8,7 @@ if [ ! -e Makefile ] ;then
fi
echo
+rm -r bin/ || echo "no bindir, skipping removal"
if [ -e ./custom_make ];then
echo "Starting Custom Make"
sh ./custom_make 2>/dev/null | while read line; do
@@ -19,9 +20,20 @@ else
fi
echo
-cat << EOF
+
+if [ -e bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin ];
+then
+ cat << EOF
finished building
You can use the following images:
Factory : $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
System Upgrade: $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin
EOF
+else
+ cat << EOF
+It seems like the factory image has not been created, it is most
+likely that the image would be too big and does not fit into the tiny FLASH.
+
+Try removing modules from \`custom_make\` and retry building.
+EOF
+fi