diff options
-rwxr-xr-x | dh_installsystemd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dh_installsystemd b/dh_installsystemd index 48a0e787..691eeee7 100755 --- a/dh_installsystemd +++ b/dh_installsystemd @@ -12,6 +12,13 @@ use Debian::Debhelper::Dh_Lib; use File::Find; use Cwd qw(getcwd abs_path); +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); +} + our $VERSION = DH_BUILTIN_VERSION; =head1 SYNOPSIS |