5 dh_installifupdown - install if-up and if-down hooks
10 use Debian::Debhelper::Dh_Lib;
14 B<dh_installifupdown> [S<I<debhelper options>>] [B<--name=>I<name>]
18 dh_installifupdown is a debhelper program that is responsible for installing
19 if-up, if-down, if-pre-up, and if-post-down hook scripts into package build
22 If a file named debian/package.if-up exists, then it is installed into
23 etc/network/if-up.d/package in the package build directory. Similar is done
24 for if-down, if-pre-up, and if-post-down.
30 =item B<--name=>I<name>
32 Look for files named debian/package.name.if-* and install them as
33 etc/network/if-*/name, instead of using the usual files and installing them
42 foreach my $package (@{$dh{DOPACKAGES}}) {
43 my $tmp=tmpdir($package);
45 foreach my $script (qw(pre-up up down post-down)) {
46 my $file=pkgfile($package, "if-$script");
48 if (! -d "$tmp/etc/network/if-$script.d") {
49 doit("install","-d","$tmp/etc/network/if-$script.d");
51 doit("install","-p","-m755",$file,"$tmp/etc/network/if-$script.d/".pkgfilename($package));
60 This program is a part of debhelper.
64 Joey Hess <joeyh@debian.org>