diff options
author | makefu <github@syntax-fehler.de> | 2013-01-14 14:46:22 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-01-14 14:46:22 +0100 |
commit | dbe2d838ba6834788265029162b2dd7d82473335 (patch) | |
tree | a4eb38f7fc91d91269b6f83453de62242c6ddc23 /minikrebs/profiles/init | |
parent | 5a782f6c8f7923f9f415afd504ce6e71acbc7fef (diff) | |
parent | abf9916bc1add17888308877fa4eb9da330297ef (diff) |
Merge branch 'master' of github.com:krebscode/painload
Conflicts:
god/temper/Makefile
god/temper/collectd-temper.sh
Diffstat (limited to 'minikrebs/profiles/init')
-rwxr-xr-x | minikrebs/profiles/init | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/minikrebs/profiles/init b/minikrebs/profiles/init new file mode 100755 index 00000000..df9fcfcd --- /dev/null +++ b/minikrebs/profiles/init @@ -0,0 +1,39 @@ +#!/bin/bash + +cd $(dirname $(readlink -f $0)) +if [ ! -e Makefile ] ;then + echo "ImageBuilder not checked out yet" + echo "try running ../prepare $$PROFILE" + exit 1 +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 + echo -n . + done +else + echo "No Custom Make Script exists, bailing out!" + exit 1 +fi + +echo + +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 |