summaryrefslogtreecommitdiffstats
path: root/minikrebs/profiles/init
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-01-07 12:06:33 +0000
committermakefu <root@pigstarter.de>2013-01-07 12:06:33 +0000
commitad376d1dab439f9d28bf7ff02bfa7afed7444037 (patch)
treef09e0ed2c0da0e5e467188bb88464d22e2d2c7a1 /minikrebs/profiles/init
parentb2df392966df95102bb8cf4ee3f043d4b6ed633f (diff)
parent6ea50f3c77350e715649aa45061beb1701ebaa95 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'minikrebs/profiles/init')
-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