]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installinit
Move many command-specific options to only be accepted by the command that uses them.
[debhelper.git] / dh_installinit
index 7dde36316574e2754f335309655fda6ef469a697..2f32b46be9f0e9e9f5e17ff7fc80d44da9e6dc3c 100755 (executable)
@@ -115,7 +115,15 @@ instances of the same text to be added to maintainer scripts.
 
 =cut
 
-init();
+init(options => {
+       "r" => \$dh{R_FLAG},
+       "no-restart-on-upgrade" => \$dh{R_FLAG},
+       "no-start" => \$dh{NO_START},
+       "R|restart-after-upgrade" => \$dh{RESTART_AFTER_UPGRADE},
+       "init-script=s" => \$dh{INIT_SCRIPT},
+       "update-rcd-params=s", => \$dh{U_PARAMS},
+       "remove-d" => \$dh{D_FLAG},
+});
 
 foreach my $package (@{$dh{DOPACKAGES}}) {
        my $tmp=tmpdir($package);