From e1dcd7e330de580b410722615cb3f05a23466bf8 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 13 May 2014 18:41:17 +0400 Subject: init-system-helpers (1.18+dyson1) unstable; urgency=medium * Package for Dyson * deb-systemd-helper and deb-systemd-invoke work only on Linux; on other archs they do nothing and return 0 * dh_systemd_enable and dh_systemd_start work only for Linux; for other archs they do nothing and return 0 --- script/dh_systemd_enable | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'script/dh_systemd_enable') 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 [S>] [B<--no-enable>] [S ...>] @@ -70,6 +77,9 @@ Note that B should be run before B. The default sequence in B does the right thing, this note is only relevant when you are calling B manually. +This command currently works for Linux only, for other Debian archs +it does nothing and returns 0; + =cut init(options => { -- cgit v1.2.3