From 46ba927a27fc6d6b2fc76096e57ae127c41b65b9 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 7 May 2015 18:12:30 +0200 Subject: started configuration stuff --- testModule/hooks/pre-mount/fetch-config.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 testModule/hooks/pre-mount/fetch-config.sh (limited to 'testModule/hooks') diff --git a/testModule/hooks/pre-mount/fetch-config.sh b/testModule/hooks/pre-mount/fetch-config.sh new file mode 100755 index 00000000..013b0058 --- /dev/null +++ b/testModule/hooks/pre-mount/fetch-config.sh @@ -0,0 +1,12 @@ +command -v info >/dev/null || . /lib/dracut-lib.sh + +info "Getting configuration from OPENSLX-Server..." + +WGET="$(busybox which wget)" +if [ -z $WGET ]; then + # do nothing + warn "'wget' not found. Skipping openslx configuration..." + exit 1 +fi +mkdir -p /opt/openslx +$WGET http://10.4.9.51/openslx/config -O /opt/openslx/config -- cgit v1.2.3-55-g7522