diff options
Diffstat (limited to 'script/deb-systemd-helper')
-rwxr-xr-x | script/deb-systemd-helper | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/script/deb-systemd-helper b/script/deb-systemd-helper index 59e76a0..8ab1ad8 100755 --- a/script/deb-systemd-helper +++ b/script/deb-systemd-helper @@ -78,6 +78,11 @@ filing a bugreport. =back +=head1 NOTES + +This command currently works on Linux only, on other Debian archs +it does nothing and returns 0; + =cut use strict; @@ -444,6 +449,12 @@ if (!$ENV{DPKG_MAINTSCRIPT_PACKAGE}) { exit 1; } +my $deb_host_arch_os = `dpkg-architecture -qDEB_HOST_ARCH_OS`; +if ($deb_host_arch_os !~ /linux/) { + debug "systemd is unsupported on $deb_host_arch_os"; + exit(0); +} + if ($action eq 'purge') { $ENV{_DEB_SYSTEMD_HELPER_PURGE} = 1; $action = 'disable'; |