Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/dracut/modules..../95cifs
File: module-setup.sh
#!/bin/bash
[0] Fix | Delete
[1] Fix | Delete
# called by dracut
[2] Fix | Delete
check() {
[3] Fix | Delete
# If our prerequisites are not met, fail anyways.
[4] Fix | Delete
require_binaries mount.cifs || return 1
[5] Fix | Delete
[6] Fix | Delete
[[ $hostonly ]] || [[ $mount_needs ]] && {
[7] Fix | Delete
for fs in "${host_fs_types[@]}"; do
[8] Fix | Delete
[[ "$fs" == "cifs" ]] && return 0
[9] Fix | Delete
done
[10] Fix | Delete
return 255
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
return 0
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
# called by dracut
[17] Fix | Delete
depends() {
[18] Fix | Delete
# We depend on network modules being loaded
[19] Fix | Delete
echo network
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
# called by dracut
[23] Fix | Delete
installkernel() {
[24] Fix | Delete
instmods cifs ipv6
[25] Fix | Delete
# hash algos
[26] Fix | Delete
instmods md4 md5 sha256
[27] Fix | Delete
# ciphers
[28] Fix | Delete
instmods aes arc4 des ecb
[29] Fix | Delete
# macs
[30] Fix | Delete
instmods hmac cmac
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
# called by dracut
[34] Fix | Delete
install() {
[35] Fix | Delete
local _i
[36] Fix | Delete
local _nsslibs
[37] Fix | Delete
inst_multiple -o mount.cifs
[38] Fix | Delete
inst_multiple /etc/services /etc/nsswitch.conf /etc/protocols
[39] Fix | Delete
[40] Fix | Delete
inst_libdir_file 'libcap-ng.so*'
[41] Fix | Delete
[42] Fix | Delete
_nsslibs=$(sed -e '/^#/d' -e 's/^.*://' -e 's/\[NOTFOUND=return\]//' /etc/nsswitch.conf \
[43] Fix | Delete
| tr -s '[:space:]' '\n' | sort -u | tr -s '[:space:]' '|')
[44] Fix | Delete
_nsslibs=${_nsslibs#|}
[45] Fix | Delete
_nsslibs=${_nsslibs%|}
[46] Fix | Delete
[47] Fix | Delete
inst_libdir_file -n "$_nsslibs" 'libnss_*.so*'
[48] Fix | Delete
[49] Fix | Delete
inst_hook cmdline 90 "$moddir/parse-cifsroot.sh"
[50] Fix | Delete
inst "$moddir/cifsroot.sh" "/sbin/cifsroot"
[51] Fix | Delete
inst "$moddir/cifs-lib.sh" "/lib/cifs-lib.sh"
[52] Fix | Delete
dracut_need_initqueue
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function