diff options
Diffstat (limited to 'script/dh_systemd_enable')
-rwxr-xr-x | script/dh_systemd_enable | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/script/dh_systemd_enable b/script/dh_systemd_enable index 564dce3..e2948df 100755 --- a/script/dh_systemd_enable +++ b/script/dh_systemd_enable @@ -11,6 +11,13 @@ use Debian::Debhelper::Dh_Lib; use File::Find; use Text::ParseWords qw(shellwords); # in core since Perl 5 +my $deb_host_arch_os = dpkg_architecture_value('DEB_HOST_ARCH_OS'); +if ($deb_host_arch_os ne 'linux') +{ + warning("systemd is unsupported on $deb_host_arch_os, doing nothing"); + exit(0); +} + =head1 SYNOPSIS B<dh_systemd_enable> [S<I<debhelper options>>] [B<--no-enable>] [S<I<unit file> ...>] @@ -70,6 +77,9 @@ Note that B<dh_systemd_enable> should be run before B<dh_installinit>. The default sequence in B<dh> does the right thing, this note is only relevant when you are calling B<dh_systemd_enable> manually. +This command currently works for Linux only, for other Debian archs +it does nothing and returns 0; + =cut init(options => { |