Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
lib
/
dracut
/
modules.d
/
95hwdb
Upload
3 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
module-setup.sh
559 B
-rwxr-xr-x
2024-01-15 17:22:41
Edit
Del
Editing: module-setup.sh
(559 B)
Path: /usr/lib/dracut/modules.d/95hwdb/module-setup.sh
Back
#!/bin/bash # This file is part of dracut. # SPDX-License-Identifier: GPL-2.0-or-later check() { return 255 } # called by dracut install() { local hwdb_bin # systemd-hwdb ships the file in /etc, with /usr/lib as an alternative. # Therefore consider this location as preferred for configuration. hwdb_bin="${udevdir}"/hwdb.bin if [[ ! -r "${hwdb_bin}" ]]; then hwdb_bin="${udevconfdir}"/hwdb.bin fi if [[ $hostonly ]]; then inst_multiple -H "${hwdb_bin}" else inst_multiple "${hwdb_bin}" fi }