diff options
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 |