diff options
author | Jonathan Bauer | 2015-05-07 18:12:30 +0200 |
---|---|---|
committer | Jonathan Bauer | 2015-05-07 18:12:30 +0200 |
commit | 46ba927a27fc6d6b2fc76096e57ae127c41b65b9 (patch) | |
tree | 81225400b12967f7e1d0a2018fdfbf527baef69d /testModule/hooks/pre-mount/fetch-config.sh | |
parent | added pids to log messages for better debugging (diff) | |
download | systemd-init-46ba927a27fc6d6b2fc76096e57ae127c41b65b9.tar.gz systemd-init-46ba927a27fc6d6b2fc76096e57ae127c41b65b9.tar.xz systemd-init-46ba927a27fc6d6b2fc76096e57ae127c41b65b9.zip |
started configuration stuff
Diffstat (limited to 'testModule/hooks/pre-mount/fetch-config.sh')
-rwxr-xr-x | testModule/hooks/pre-mount/fetch-config.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |