ACIL FM
Dark
Refresh
Current DIR:
/lib/dracut/modules.d/01systemd-ac-power
/
lib
dracut
modules.d
01systemd-ac-power
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
99-initrd-power-targets.rules
297 B
chmod
View
DL
Edit
Rename
Delete
initrd-on-ac-power.target
212 B
chmod
View
DL
Edit
Rename
Delete
initrd-on-battery-power.target
217 B
chmod
View
DL
Edit
Rename
Delete
module-setup.sh
782 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/dracut/modules.d/01systemd-ac-power/module-setup.sh
#!/usr/bin/bash # This file is part of dracut. # SPDX-License-Identifier: GPL-2.0-or-later # Prerequisite check(s) for module. check() { # Return 255 to only include the module, if another module requires it. return 255 } # Module dependency requirements. depends() { # Return 0 to include the dependent module(s) in the initramfs. return 0 } # Install the required file(s) and directories for the module in the initramfs. install() { inst_rules "$moddir/99-initrd-power-targets.rules" inst_simple "$systemdutildir"/systemd-ac-power inst_simple "$moddir/initrd-on-ac-power.target" "$systemdsystemunitdir/initrd-on-ac-power.target" inst_simple "$moddir/initrd-on-battery-power.target" "$systemdsystemunitdir/initrd-on-battery-power.target" }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply