summaryrefslogblamecommitdiffstats
path: root/testModule/hooks/pre-mount/fetch-config.sh
blob: 013b00584cfa092a6ef4fbb9797339020d629d00 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
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