diff options
author | makefu <root@pigstarter.de> | 2013-01-14 00:50:15 +0000 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2013-01-14 00:50:15 +0000 |
commit | a2195f3c9f382acebcf49b3043944f34609e4550 (patch) | |
tree | c542ab73193cd81ecd6482806c05b2fb6560cdae /minikrebs/prepare | |
parent | b6144a1e1b24a82d479741edd12fa3ad7a744c58 (diff) | |
parent | abf9916bc1add17888308877fa4eb9da330297ef (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'minikrebs/prepare')
-rwxr-xr-x | minikrebs/prepare | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/minikrebs/prepare b/minikrebs/prepare index 610c1299..a22a1aa6 100755 --- a/minikrebs/prepare +++ b/minikrebs/prepare @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -euf IMAGEBUILDER_URL="http://downloads.openwrt.org/attitude_adjustment/12.09-beta2/ar71xx/generic/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486.tar.bz2" @@ -24,6 +24,7 @@ echo echo "copying generic init:" cp --remove-destination profiles/init builder/init echo " profile/init -> builder/init" +[ -e builder/overlay ] && echo "removing old overlay" && rm -rf builder/overlay echo echo "copying profile:" find profiles/$PROFILE -mindepth 1 -maxdepth 1| while read file; do @@ -34,4 +35,11 @@ done echo echo $PROFILE > builder/current_profile -echo 'now run `builder/init`' +echo "Finished Preparing Profile $PROFILE" +echo 'run `builder/init`' + +if [ -e builder/overlay ];then + echo + echo "This profile also contains overlay data," + echo 'run `builder/init_overlay` to copy' +fi |