summaryrefslogtreecommitdiffstats
path: root/minikrebs/prepare
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-02-26 12:18:52 +0000
committermakefu <root@pigstarter.de>2013-02-26 12:18:52 +0000
commitef4eb3189363f5cd9a33b43693322a68d3142979 (patch)
tree683df8268baae71451633518aa7ff7ea258a4aa8 /minikrebs/prepare
parente2369060a397e8dad82a2dfcc63c81df1e08a983 (diff)
parent001bfd5f2b6890cafd209de4ea360927d4dd8a55 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Conflicts: minikrebs
Diffstat (limited to 'minikrebs/prepare')
-rwxr-xr-xminikrebs/prepare45
1 files changed, 0 insertions, 45 deletions
diff --git a/minikrebs/prepare b/minikrebs/prepare
deleted file mode 100755
index a22a1aa6..00000000
--- a/minikrebs/prepare
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/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"
-
-cd $(dirname $(readlink -f $0))
-if [ x"${1:-}" == x ];then
- echo "usage: $0 PROFILE"
- echo
- echo "Available Profiles:"
- 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 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"
-fi
-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
- echo " $file -> builder/$(basename $file)"
- rm -rf builder/$(basename $file)
- cp -r $file builder/
-done
-
-echo
-echo $PROFILE > builder/current_profile
-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