You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
512 B
25 lines
512 B
![]()
13 years ago
|
#!/bin/bash
|
||
|
# module-setup for url-lib
|
||
|
|
||
|
check() {
|
||
|
command -v curl >/dev/null || return 1
|
||
|
return 255
|
||
|
}
|
||
|
|
||
|
depends() {
|
||
|
echo network
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
install() {
|
||
|
inst "$moddir/url-lib.sh" "/lib/url-lib.sh"
|
||
|
dracut_install curl
|
||
|
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
|
||
|
}
|
||
|
|