diff options
Diffstat (limited to 'builder/modules.d/wlan-boot/chroot')
33 files changed, 0 insertions, 592 deletions
diff --git a/builder/modules.d/wlan-boot/chroot/README b/builder/modules.d/wlan-boot/chroot/README deleted file mode 100644 index 8d6a5e50..00000000 --- a/builder/modules.d/wlan-boot/chroot/README +++ /dev/null @@ -1,44 +0,0 @@ -rd.break=pre-mount: -=================== - -rm /lib/dracut/hooks/pre-mount/00-start-wlan.sh - -MOUNT -===== - -mkdir /chroot -mount -t tmpfs tmpfs /chroot/ -cd /chroot/ -tar xzf /root/environment.tar - -cd environment - -mount -t proc proc proc/ -mount -o bind /sys sys/ -mount -o bind /dev dev/ - -CONFIG -====== - - -cp /etc/wpa_supplicant.conf etc/ - -cd .. - -chroot environment /usr/bin/systemd-preserver-process-marker wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -chroot environment /usr/bin/systemd-preserver-process-marker dhcpcd wlan0 - - -rd.break=switch-root -==================== - -rm /sysroot/etc/systemd/system/sysinit.target.wants/dhcp.service -rm /sysroot/etc/systemd/system/sysinit.target.wants/wpa_supplicant.service - - -mkdir /sysroot/chroot -mount -o bind /chroot /sysroot/chroot/ - -mount -t proc proc /sysroot/chroot/environment/proc/ -mount -o bind /sys /sysroot/chroot/environment/sys/ -mount -o bind /dev /sysroot/chroot/environment/dev/ diff --git a/builder/modules.d/wlan-boot/chroot/environment.tar b/builder/modules.d/wlan-boot/chroot/environment.tar Binary files differdeleted file mode 100644 index 2838ecea..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment.tar +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/bin/sh b/builder/modules.d/wlan-boot/chroot/environment/bin/sh Binary files differdeleted file mode 100755 index 5672e081..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/bin/sh +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/etc/ssl/certs/Deutsche_Telekom_Root_CA_2.pem b/builder/modules.d/wlan-boot/chroot/environment/etc/ssl/certs/Deutsche_Telekom_Root_CA_2.pem deleted file mode 100644 index 05879ff3..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/etc/ssl/certs/Deutsche_Telekom_Root_CA_2.pem +++ /dev/null @@ -1,22 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIDnzCCAoegAwIBAgIBJjANBgkqhkiG9w0BAQUFADBxMQswCQYDVQQGEwJERTEc -MBoGA1UEChMTRGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxlU2Vj -IFRydXN0IENlbnRlcjEjMCEGA1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBSb290IENB -IDIwHhcNOTkwNzA5MTIxMTAwWhcNMTkwNzA5MjM1OTAwWjBxMQswCQYDVQQGEwJE -RTEcMBoGA1UEChMTRGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxl -U2VjIFRydXN0IENlbnRlcjEjMCEGA1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBSb290 -IENBIDIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCrC6M14IspFLEU -ha88EOQ5bzVdSq7d6mGNlUn0b2SjGmBmpKlAIoTZ1KXleJMOaAGtuU1cOs7TuKhC -QN/Po7qCWWqSG6wcmtoIKyUn+WkjR/Hg6yx6m/UTAtB+NHzCnjwAWav12gz1Mjwr -rFDa1sPeg5TKqAyZMg4ISFZbavva4VhYAUlfckE8FQYBjl2tqriTtM2e66foai1S -NNs671x1Udrb8zH57nGYMsRUFUQM+ZtV7a3fGAigo4aKSe5TBY8ZTNXeWHmb0moc -QqvF1afPaA+W5OFhmHZhyJF81j4A4pFQh+GdCuatl9Idxjp9y7zaAzTVjlsB9WoH -txa2bkp/AgMBAAGjQjBAMB0GA1UdDgQWBBQxw3kbuvVT1xfgiXotF2wKsyudMzAP -BgNVHRMECDAGAQH/AgEFMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOC -AQEAlGRZrTlk5ynrE/5aw4sTV8gEJPB0d8Bg42f76Ymmg7+Wgnxu1MM9756Abrsp -tJh6sTtU6zkXR34ajgv8HzFZMQSyzhfzLMdiNlXiItiJVbSYSKpk+tYcNthEeFpa -IzpXl/V6ME+un2pMSyuOoAPjPuCp1NJ70rOo4nI8rZ7/gFnkm0W09juwzTkZmDLl -6iFhkOQxIY40sfcvNUqFENrnijchvllj4PKFiDFT1FQUhXB59C4Gdyd1Lx+4ivn+ -xbrYNuSD7Odlt79jWvNGr4GUN9RBjNYj1h7P9WgbRGOiWrqnNVmh5XAFmw4jV5mU -Cm26OWMohpLzGITY+9HPBVZkVw== ------END CERTIFICATE----- diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/ld-linux-x86-64.so.2 b/builder/modules.d/wlan-boot/chroot/environment/lib64/ld-linux-x86-64.so.2 Binary files differdeleted file mode 100755 index b39bc468..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/ld-linux-x86-64.so.2 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libc.so.6 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libc.so.6 Binary files differdeleted file mode 100755 index 58b51aa6..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libc.so.6 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libcom_err.so.2 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libcom_err.so.2 Binary files differdeleted file mode 100755 index 5617634d..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libcom_err.so.2 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libcrypto.so.10 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libcrypto.so.10 Binary files differdeleted file mode 100755 index fcb9e36a..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libcrypto.so.10 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libdbus-1.so.3 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libdbus-1.so.3 Binary files differdeleted file mode 100755 index b024940b..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libdbus-1.so.3 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libdl.so.2 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libdl.so.2 Binary files differdeleted file mode 100755 index 3d6cddcb..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libdl.so.2 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libgssapi_krb5.so.2 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libgssapi_krb5.so.2 Binary files differdeleted file mode 100755 index 3f5c6a07..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libgssapi_krb5.so.2 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libk5crypto.so.3 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libk5crypto.so.3 Binary files differdeleted file mode 100755 index 18d24b6d..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libk5crypto.so.3 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libkeyutils.so.1 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libkeyutils.so.1 Binary files differdeleted file mode 100755 index c9fdf185..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libkeyutils.so.1 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libkrb5.so.3 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libkrb5.so.3 Binary files differdeleted file mode 100755 index 20c40016..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libkrb5.so.3 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libkrb5support.so.0 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libkrb5support.so.0 Binary files differdeleted file mode 100755 index 08d42cd7..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libkrb5support.so.0 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/liblzma.so.5 b/builder/modules.d/wlan-boot/chroot/environment/lib64/liblzma.so.5 Binary files differdeleted file mode 100755 index 3e2841a6..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/liblzma.so.5 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libm.so.6 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libm.so.6 Binary files differdeleted file mode 100755 index 9e471ce5..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libm.so.6 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libnl-3.so.200 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libnl-3.so.200 Binary files differdeleted file mode 100755 index 03733566..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libnl-3.so.200 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libnl-genl-3.so.200 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libnl-genl-3.so.200 Binary files differdeleted file mode 100755 index 2fbb7caa..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libnl-genl-3.so.200 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libpcre.so.1 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libpcre.so.1 Binary files differdeleted file mode 100755 index 4e100f6b..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libpcre.so.1 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libpthread.so.0 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libpthread.so.0 Binary files differdeleted file mode 100755 index f3b670d7..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libpthread.so.0 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libresolv.so.2 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libresolv.so.2 Binary files differdeleted file mode 100755 index 08ea9aed..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libresolv.so.2 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/librt.so.1 b/builder/modules.d/wlan-boot/chroot/environment/lib64/librt.so.1 Binary files differdeleted file mode 100755 index d19805a0..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/librt.so.1 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libselinux.so.1 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libselinux.so.1 Binary files differdeleted file mode 100755 index 22335824..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libselinux.so.1 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libssl.so.10 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libssl.so.10 Binary files differdeleted file mode 100755 index 163d81b3..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libssl.so.10 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libtinfo.so.5 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libtinfo.so.5 Binary files differdeleted file mode 100755 index 74001427..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libtinfo.so.5 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/lib64/libz.so.1 b/builder/modules.d/wlan-boot/chroot/environment/lib64/libz.so.1 Binary files differdeleted file mode 100755 index 257c46b1..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/lib64/libz.so.1 +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/libexec/dhcpcd-hooks/10-wpa_supplicant b/builder/modules.d/wlan-boot/chroot/environment/libexec/dhcpcd-hooks/10-wpa_supplicant deleted file mode 100755 index adea9957..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/libexec/dhcpcd-hooks/10-wpa_supplicant +++ /dev/null @@ -1,118 +0,0 @@ -# Start, reconfigure and stop wpa_supplicant per wireless interface. -# This is needed because wpa_supplicant lacks hotplugging of any kind -# and the user should not be expected to have to wire it into their system -# if the base system doesn't do this itself. - -if [ -z "$wpa_supplicant_conf" ]; then - for x in \ - /etc/wpa_supplicant/wpa_supplicant-"$interface".conf \ - /etc/wpa_supplicant/wpa_supplicant.conf \ - /etc/wpa_supplicant-"$interface".conf \ - /etc/wpa_supplicant.conf \ - ; do - if [ -s "$x" ]; then - wpa_supplicant_conf="$x" - break - fi - done -fi -: ${wpa_supplicant_conf:=/etc/wpa_supplicant.conf} - -wpa_supplicant_ctrldir() -{ - local dir - - dir=$(key_get_value "[[:space:]]*ctrl_interface=" \ - "$wpa_supplicant_conf") - dir=$(trim "$dir") - case "$dir" in - DIR=*) - dir=${dir##DIR=} - dir=${dir%%[[:space:]]GROUP=*} - dir=$(trim "$dir") - ;; - esac - printf %s "$dir" -} - -wpa_supplicant_start() -{ - local dir err errn - - # If the carrier is up, don't bother checking anything - [ "$ifcarrier" = "up" ] && return 0 - - # Pre flight checks - if [ ! -s "$wpa_supplicant_conf" ]; then - syslog warn \ - "$wpa_supplicant_conf does not exist" - syslog warn "not interacting with wpa_supplicant(8)" - return 1 - fi - dir=$(wpa_supplicant_ctrldir) - if [ -z "$dir" ]; then - syslog warn \ - "ctrl_interface not defined in $wpa_supplicant_conf" - syslog warn "not interacting with wpa_supplicant(8)" - return 1 - fi - - wpa_cli -p "$dir" -i "$interface" status >/dev/null 2>&1 && return 0 - syslog info "starting wpa_supplicant" - driver=${wpa_supplicant_driver:+-D}$wpa_supplicant_driver - err=$(systemctl start wpa_supplicant 2>&1) - errn=$? - if [ $errn != 0 ]; then - syslog err "failed to start wpa_supplicant" - syslog err "$err" - fi - return $errn -} - -wpa_supplicant_reconfigure() -{ - local dir err errn - - dir=$(wpa_supplicant_ctrldir) - [ -z "$dir" ] && return 1 - if ! wpa_cli -p "$dir" -i "$interface" status >/dev/null 2>&1; then - wpa_supplicant_start - return $? - fi - syslog info "reconfiguring wpa_supplicant" - err=$(wpa_cli -p "$dir" -i "$interface" reconfigure 2>&1) - errn=$? - if [ $errn != 0 ]; then - syslog err "failed to reconfigure wpa_supplicant" - syslog err "$err" - fi - return $errn -} - -wpa_supplicant_stop() -{ - local dir err errn - - dir=$(wpa_supplicant_ctrldir) - [ -z "$dir" ] && return 1 - wpa_cli -p "$dir" -i "$interface" status >/dev/null 2>&1 || return 0 - syslog info "stopping wpa_supplicant" - err=$(wpa_cli -i"$interface" terminate 2>&1) - errn=$? - if [ $errn != 0 ]; then - syslog err "failed to start wpa_supplicant" - syslog err "$err" - fi - return $errn -} - -if [ "$ifwireless" = "1" ] && \ - type wpa_supplicant >/dev/null 2>&1 && \ - type wpa_cli >/dev/null 2>&1 -then - case "$reason" in - PREINIT|NOCARRIER) wpa_supplicant_start;; - RECONFIGURE) wpa_supplicant_reconfigure;; - DEPARTED) wpa_supplicant_stop;; - esac -fi diff --git a/builder/modules.d/wlan-boot/chroot/environment/libexec/dhcpcd-run-hooks b/builder/modules.d/wlan-boot/chroot/environment/libexec/dhcpcd-run-hooks deleted file mode 100755 index 8caf0dc9..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/libexec/dhcpcd-run-hooks +++ /dev/null @@ -1,387 +0,0 @@ -#!/bin/sh -# dhcpcd client configuration script - -# Handy variables and functions for our hooks to use -case "$reason" in - ROUTERADVERT) - ifsuffix=".ra";; - INFORM6|BOUND6|RENEW6|REBIND6|REBOOT6|EXPIRE6|RELEASE6|STOP6) - ifsuffix=".dhcp6";; - IPV4LL) - ifsuffix=".ipv4ll";; - *) - ifsuffix=".dhcp";; -esac -ifname="$interface$ifsuffix" - -from=from -signature_base="# Generated by dhcpcd" -signature="$signature_base $from $ifname" -signature_base_end="# End of dhcpcd" -signature_end="$signature_base_end $from $ifname" -state_dir=/var/run/dhcpcd -_detected_init=false - -: ${if_up:=false} -: ${if_down:=false} -: ${syslog_debug:=false} - -# Ensure that all arguments are unique -uniqify() -{ - local result= i= - for i do - case " $result " in - *" $i "*);; - *) result="$result $i";; - esac - done - echo "${result# *}" -} - -# List interface config files in a directory. -# If dhcpcd is running as a single instance then it will have a list of -# interfaces in the preferred order. -# Otherwise we just use what we have. -list_interfaces() -{ - local i= x= ifaces= - for i in $interface_order; do - for x in "$1"/$i.*; do - [ -f "$x" ] && ifaces="$ifaces${ifaces:+ }${x##*/}" - done - done - for x in "$1"/*; do - [ -f "$x" ] && ifaces="$ifaces${ifaces:+ }${x##*/}" - done - uniqify $ifaces -} - -# Trim function -trim() -{ - local var="$*" - - var=${var#"${var%%[![:space:]]*}"} - var=${var%"${var##*[![:space:]]}"} - if [ -z "$var" ]; then - # So it seems our shell doesn't support wctype(3) patterns - # Fall back to sed - var=$(echo "$*" | sed -e 's/^[[:space:]]*//;s/[[:space:]]*$//') - fi - printf %s "$var" -} - -# We normally use sed to extract values using a key from a list of files -# but sed may not always be available at the time. -key_get_value() -{ - local key="$1" value= x= line= - - shift - if type sed >/dev/null 2>&1; then - sed -n "s/^$key//p" $@ - else - for x do - while read line; do - case "$line" in - "$key"*) echo "${line##$key}";; - esac - done < "$x" - done - fi -} - -# We normally use sed to remove markers from a configuration file -# but sed may not always be available at the time. -remove_markers() -{ - local m1="$1" m2="$2" x= line= in_marker=0 - - shift; shift - if type sed >/dev/null 2>&1; then - sed "/^$m1/,/^$m2/d" $@ - else - for x do - while read line; do - case "$line" in - "$m1"*) in_marker=1;; - "$m2"*) in_marker=0;; - *) [ $in_marker = 0 ] && echo "$line";; - esac - done < "$x" - done - fi -} - -# Compare two files. -comp_file() -{ - - [ -e "$1" -a -e "$2" ] || return 1 - - if type cmp >/dev/null 2>&1; then - cmp -s "$1" "$2" - elif type diff >/dev/null 2>&1; then - diff -q "$1" "$2" >/dev/null - else - # Hopefully we're only working on small text files ... - [ "$(cat "$1")" = "$(cat "$2")" ] - fi -} - -# Compare two files. -# If different, replace first with second otherwise remove second. -change_file() -{ - - if [ -e "$1" ]; then - if comp_file "$1" "$2"; then - rm -f "$2" - return 1 - fi - fi - cat "$2" > "$1" - rm -f "$2" - return 0 -} - -# Compare two files. -# If different, copy or link depending on target type -copy_file() -{ - - if [ -h "$2" ]; then - [ "$(readlink "$2")" = "$1" ] && return 1 - ln -sf "$1" "$2" - else - comp_file "$1" "$2" && return 1 - cat "$1" >"$2" - fi -} - -# Save a config file -save_conf() -{ - - if [ -f "$1" ]; then - rm -f "$1-pre.$interface" - cat "$1" > "$1-pre.$interface" - fi -} - -# Restore a config file -restore_conf() -{ - - [ -f "$1-pre.$interface" ] || return 1 - cat "$1-pre.$interface" > "$1" - rm -f "$1-pre.$interface" -} - -# Write a syslog entry -syslog() -{ - local lvl="$1" - - if [ "$lvl" = debug ]; then - ${syslog_debug} || return 0 - fi - [ -n "$lvl" ] && shift - [ -n "$*" ] || return 0 - case "$lvl" in - err|error) echo "$interface: $*" >&2;; - *) echo "$interface: $*";; - esac - if type logger >/dev/null 2>&1; then - logger -i -p daemon."$lvl" -t dhcpcd-run-hooks "$interface: $*" - fi -} - -# Check for a valid domain name as per RFC1123 with the exception of -# allowing - and _ as they seem to be widely used. -valid_domainname() -{ - local name="$1" label - - [ -z "$name" -o ${#name} -gt 255 ] && return 1 - - while [ -n "$name" ]; do - label="${name%%.*}" - [ -z "$label" -o ${#label} -gt 63 ] && return 1 - case "$label" in - -*|_*|*-|*_) return 1;; - # some sh require - as the first or last character in the class - # when matching it - *[![:alnum:]_-]*) return 1;; - esac - [ "$name" = "${name#*.}" ] && break - name="${name#*.}" - done - return 0 -} - -valid_domainname_list() -{ - local name - - for name do - valid_domainname "$name" || return $? - done - return 0 -} - -# Check for a valid path -valid_path() -{ - - case "$@" in - *[![:alnum:]#%+-_:\.,@~\\/\[\]=\ ]*) return 1;; - esac - return 0 -} - -# With the advent of alternative init systems, it's possible to have -# more than one installed. So we need to try and guess what one we're -# using unless overriden by configure. -detect_init() -{ - _service_exists="" - _service_cmd="" - _service_status="" - - [ -n "$_service_cmd" ] && return 0 - - if ${_detected_init}; then - [ -n "$_service_cmd" ] - return $? - fi - - # Detect the running init system. - # As systemd and OpenRC can be installed on top of legacy init - # systems we try to detect them first. - local status="" - : ${status:=status} - if [ -x /bin/systemctl -a -S /run/systemd/private ]; then - _service_exists="/bin/systemctl --quiet is-enabled \$1.service" - _service_status="/bin/systemctl --quiet is-active \$1.service" - _service_cmd="/bin/systemctl \$2 \$1.service" - elif [ -x /usr/bin/systemctl -a -S /run/systemd/private ]; then - _service_exists="/usr/bin/systemctl --quiet is-enabled \$1.service" - _service_status="/usr/bin/systemctl --quiet is-active \$1.service" - _service_cmd="/usr/bin/systemctl \$2 \$1.service" - elif [ -x /sbin/rc-service -a \ - -s /libexec/rc/init.d/softlevel -o -s /run/openrc/softlevel ] - then - _service_exists="/sbin/rc-service -e \$1" - _service_cmd="/sbin/rc-service \$1 -- -D \$2" - elif [ -x /usr/sbin/invoke-rc.d ]; then - _service_exists="/usr/sbin/invoke-rc.d --query --quiet \$1 start >/dev/null 2>&1 || [ \$? = 104 ]" - _service_cmd="/usr/sbin/invoke-rc.d \$1 \$2" - elif [ -x /sbin/service ]; then - _service_exists="/sbin/service \$1 >/dev/null 2>&1" - _service_cmd="/sbin/service \$1 \$2" - elif [ -x /usr/sbin/service ]; then - _service_exists="/usr/sbin/service \$1 $status >/dev/null 2>&1" - _service_cmd="/usr/sbin/service \$1 \$2" - elif [ -x /bin/sv ]; then - _service_exists="/bin/sv status \1 >/dev/null 2>&1" - _service_cmd="/bin/sv \$1 \$2" - elif [ -x /usr/bin/sv ]; then - _service_exists="/usr/bin/sv status \1 >/dev/null 2>&1" - _service_cmd="/usr/bin/sv \$1 \$2" - elif [ -e /etc/slackware-version -a -d /etc/rc.d ]; then - _service_exists="[ -x /etc/rc.d/rc.\$1 ]" - _service_cmd="/etc/rc.d/rc.\$1 \$2" - _service_status="/etc/rc.d/rc.\$1 status >/dev/null 2>&1" - else - for x in /etc/init.d/rc.d /etc/rc.d /etc/init.d; do - if [ -d $x ]; then - _service_exists="[ -x $x/\$1 ]" - _service_cmd="$x/\$1 \$2" - _service_status="$x/\$1 $status >/dev/null 2>&1" - break - fi - done - if [ -e /etc/arch-release ]; then - _service_status="[ -e /var/run/daemons/\$1 ]" - elif [ "$x" = "/etc/rc.d" -a -e /etc/rc.d/rc.subr ]; then - _service_status="$x/\$1 check >/dev/null 2>&1" - fi - fi - - _detected_init=true - if [ -z "$_service_cmd" ]; then - syslog err "could not detect a useable init system" - return 1 - fi - return 0 -} - -# Check a system service exists -service_exists() -{ - - if [ -z "$_service_exists" ]; then - detect_init || return 1 - fi - eval $_service_exists -} - -# Send a command to a system service -service_cmd() -{ - - if [ -z "$_service_cmd" ]; then - detect_init || return 1 - fi - eval $_service_cmd -} - -# Send a command to a system service if it is running -service_status() -{ - - if [ -z "$_service_cmd" ]; then - detect_init || return 1 - fi - if [ -n "$_service_status" ]; then - eval $_service_status - else - service_command $1 status >/dev/null 2>&1 - fi -} - -# Handy macros for our hooks -service_command() -{ - - service_exists $1 && service_cmd $1 $2 -} -service_condcommand() -{ - - service_exists $1 && service_status $1 && service_cmd $1 $2 -} - -# We source each script into this one so that scripts run earlier can -# remove variables from the environment so later scripts don't see them. -# Thus, the user can create their dhcpcd.enter/exit-hook script to configure -# /etc/resolv.conf how they want and stop the system scripts ever updating it. -for hook in \ - /etc/dhcpcd.enter-hook \ - /libexec/dhcpcd-hooks/* \ - /etc/dhcpcd.exit-hook -do - for skip in $skip_hooks; do - case "$hook" in - */*~) continue 2;; - */"$skip") continue 2;; - */[0-9][0-9]"-$skip") continue 2;; - */[0-9][0-9]"-$skip.sh") continue 2;; - esac - done - if [ -f "$hook" ]; then - . "$hook" - fi -done diff --git a/builder/modules.d/wlan-boot/chroot/environment/usr/bin/systemd-preserve-process-marker b/builder/modules.d/wlan-boot/chroot/environment/usr/bin/systemd-preserve-process-marker Binary files differdeleted file mode 100755 index 99d1e0c4..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/usr/bin/systemd-preserve-process-marker +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/usr/sbin/dhcpcd b/builder/modules.d/wlan-boot/chroot/environment/usr/sbin/dhcpcd Binary files differdeleted file mode 100755 index 933e4cc7..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/usr/sbin/dhcpcd +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/environment/usr/sbin/wpa_supplicant b/builder/modules.d/wlan-boot/chroot/environment/usr/sbin/wpa_supplicant Binary files differdeleted file mode 100755 index 39ddd72d..00000000 --- a/builder/modules.d/wlan-boot/chroot/environment/usr/sbin/wpa_supplicant +++ /dev/null diff --git a/builder/modules.d/wlan-boot/chroot/wpa_libs.lst b/builder/modules.d/wlan-boot/chroot/wpa_libs.lst deleted file mode 100644 index ed5fa99e..00000000 --- a/builder/modules.d/wlan-boot/chroot/wpa_libs.lst +++ /dev/null @@ -1,21 +0,0 @@ -/lib64/libnl-3.so.200 -/lib64/libnl-genl-3.so.200 -/lib64/libdl.so.2 -/lib64/libssl.so.10 -/lib64/libcrypto.so.10 -/lib64/libdbus-1.so.3 -/lib64/libc.so.6 -/lib64/libpthread.so.0 -/lib64/libm.so.6 -/lib64/libgssapi_krb5.so.2 -/lib64/libkrb5.so.3 -/lib64/libcom_err.so.2 -/lib64/libk5crypto.so.3 -/lib64/libz.so.1 -/lib64/librt.so.1 -/lib64/libkrb5support.so.0 -/lib64/libkeyutils.so.1 -/lib64/libresolv.so.2 -/lib64/libselinux.so.1 -/lib64/libpcre.so.1 -/lib64/liblzma.so.5 |