diff options
Diffstat (limited to 'systemd')
-rwxr-xr-x | systemd/fedora-loadmodules | 4 | ||||
-rwxr-xr-x | systemd/mandriva-save-dmesg | 4 | ||||
-rw-r--r-- | systemd/system/mandriva-everytime.service | 13 | ||||
-rw-r--r-- | systemd/system/mandriva-save-dmesg.service | 11 |
4 files changed, 31 insertions, 1 deletions
diff --git a/systemd/fedora-loadmodules b/systemd/fedora-loadmodules index 4fd167c4..5925bdf7 100755 --- a/systemd/fedora-loadmodules +++ b/systemd/fedora-loadmodules @@ -2,7 +2,9 @@ # Load other user-defined modules for file in /etc/sysconfig/modules/*.modules ; do - [ -x $file ] && $file + if [ -x $file ]; then + $file + fi done # Load modules (for backward compatibility with VARs) diff --git a/systemd/mandriva-save-dmesg b/systemd/mandriva-save-dmesg new file mode 100755 index 00000000..92562fcc --- /dev/null +++ b/systemd/mandriva-save-dmesg @@ -0,0 +1,4 @@ +#!/bin/sh + +[ -f /var/log/dmesg ] && mv -f /var/log/dmesg /var/log/dmesg.old +dmesg -s 131072 > /var/log/dmesg diff --git a/systemd/system/mandriva-everytime.service b/systemd/system/mandriva-everytime.service new file mode 100644 index 00000000..890310b1 --- /dev/null +++ b/systemd/system/mandriva-everytime.service @@ -0,0 +1,13 @@ +[Unit] +Description=Reconfigure the system on administrator request +DefaultDependencies=no +Conflicts=shutdown.target +Before=basic.target shutdown.target +After=local-fs.target dkms-autorebuild.service + +[Service] +ExecStart=-/etc/init.d/mandrake_everytime +Type=oneshot +TimeoutSec=0 +StandardInput=tty +RemainAfterExit=yes diff --git a/systemd/system/mandriva-save-dmesg.service b/systemd/system/mandriva-save-dmesg.service new file mode 100644 index 00000000..5fd1bcaa --- /dev/null +++ b/systemd/system/mandriva-save-dmesg.service @@ -0,0 +1,11 @@ +[Unit] +Description=Save boot dmesg content +DefaultDependencies=no +Conflicts=shutdown.target +After=systemd-udev-settle.service local-fs.target +Before=shutdown.target + +[Service] +ExecStart=-/lib/systemd/mandriva-save-dmesg +Type=oneshot +RemainAfterExit=yes |