diff options
author | makefu <root@pigstarter.de> | 2013-01-07 12:06:33 +0000 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2013-01-07 12:06:33 +0000 |
commit | ad376d1dab439f9d28bf7ff02bfa7afed7444037 (patch) | |
tree | f09e0ed2c0da0e5e467188bb88464d22e2d2c7a1 /minikrebs/prepare | |
parent | b2df392966df95102bb8cf4ee3f043d4b6ed633f (diff) | |
parent | 6ea50f3c77350e715649aa45061beb1701ebaa95 (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'minikrebs/prepare')
-rwxr-xr-x | minikrebs/prepare | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/minikrebs/prepare b/minikrebs/prepare index 320e4516..610c1299 100755 --- a/minikrebs/prepare +++ b/minikrebs/prepare @@ -7,15 +7,15 @@ if [ x"${1:-}" == x ];then echo "usage: $0 PROFILE" echo echo "Available Profiles:" - ls -1 profiles/ | grep -v '^init$' | while read profile; do + ls -1 profiles/ |grep -v '^README' | grep -v '^init$' | while read profile; do echo " $profile" done exit 1 fi PROFILE=$1 if [ ! -e builder/Makefile ]; then - wget -O- $IMAGEBUILDER_URL | tar xj -C builder OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486 - mv OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486 builder + wget -O- $IMAGEBUILDER_URL | tar xj OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486 + mv -f OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486 builder echo "Builder successfully downloaded" else echo "Builder already installed, skipping download" @@ -28,8 +28,10 @@ echo echo "copying profile:" find profiles/$PROFILE -mindepth 1 -maxdepth 1| while read file; do echo " $file -> builder/$(basename $file)" - #rm -rf builder/$file - cp -r --remove-destination $file builder/ + rm -rf builder/$(basename $file) + cp -r $file builder/ done + echo +echo $PROFILE > builder/current_profile echo 'now run `builder/init`' |