Commit Graph

8 Commits

Author SHA1 Message Date
наб
7fc16be7dd
systemd-sysv.postinst: which -> command -v 2022-10-09 23:11:32 +02:00
Michael Biebl
93417d9013 Use more consistent shell script headers
Gbp-Dch: Ignore
2020-01-31 10:46:58 +01:00
Didier Roche
b4a8821c5a systemd-sysv.postinst: Adjust syntax for better portability 2015-03-26 08:30:11 +01:00
Martin Pitt
0ecbaadc88 Add systemd-sysv.postinst: Update grub on first installation
With that the alternative init system boot entries get updated.
2015-03-04 08:11:42 +01:00
Michael Biebl
3d3587f270 Make the SysV compat tools try both /run/initctl and /dev/initctl
This makes them usable under sysvinit as PID 1 without requiring any
symlinks.
2014-06-24 12:46:27 +02:00
Michael Biebl
10952c547d Update the checks which test if systemd is the active init.
The recommended check is [ -d /run/systemd/system ] as this will also
work with a standalone systemd-logind.
2013-06-20 01:17:00 +02:00
Michael Biebl
7598935ed4 Don't ignore errores in systemd-sysv postinst
and add a missing #DEBHELPER# stanza.
2012-04-28 11:25:43 +02:00
Michael Biebl
63ff3eef32 Create compat /dev/initctl symlink
in case we are upgrading from a system running a newer version of sysvinit
(using /run/initctl) and sysvinit is replaced with systemd-sysv during the
upgrade. Closes: #663219
2012-04-02 20:21:23 +02:00