29 lines
682 B
Bash
Executable File
29 lines
682 B
Bash
Executable File
#!/bin/bash
|
|
# module-setup.sh for livenet
|
|
|
|
check() {
|
|
# a live, host-only image doesn't really make a lot of sense
|
|
[[ $hostonly ]] && return 1
|
|
command -v wget >/dev/null || return 1
|
|
return 255
|
|
}
|
|
|
|
depends() {
|
|
echo network dmsquash-live
|
|
return 0
|
|
}
|
|
|
|
install() {
|
|
dracut_install wget
|
|
mkdir -m 0755 -p "$initdir/etc/ssl/certs"
|
|
if ! inst_any -t /etc/ssl/certs/ca-bundle.crt \
|
|
/etc/ssl/certs/ca-bundle.crt \
|
|
/etc/ssl/certs/ca-certificates.crt; then
|
|
dwarn "Couldn't find SSL CA cert bundle; HTTPS won't work."
|
|
fi
|
|
|
|
inst_hook cmdline 29 "$moddir/parse-livenet.sh"
|
|
inst "$moddir/livenetroot" "/sbin/livenetroot"
|
|
}
|
|
|