Git init
[external/insserv.git] / debian / patches / 21_tests_suite_new_functions.patch
1 Purpose: Add some extra functions used by Debian test suite script
2 Authour: Kel Modderman
3 Fixes:   -
4 Status:  Should be sent upstream
5
6 Index: insserv/tests/suite
7 ===================================================================
8 --- insserv.orig/tests/suite    2009-09-26 22:35:26.000000000 +0200
9 +++ insserv/tests/suite 2009-09-26 22:35:39.000000000 +0200
10 @@ -94,6 +94,12 @@
11      $insserv $debug -c $insconf -p $initddir -o $overridedir -r $script
12  }
13  
14 +initdir_purge ()
15 +{
16 +    rm -rf ${initddir}/../rc*.d ${initddir}
17 +    mkdir -p ${initddir}
18 +}
19 +
20  relpath ()
21  {
22      local OLDIFS IFS
23 @@ -201,6 +207,13 @@
24      chmod u+w,a+rx $script
25  }
26  
27 +remscript ()
28 +{
29 +    local scriptname=$1
30 +    local script=${initddir}/$scriptname
31 +    rm -f $script
32 +}
33 +
34  insertscript ()
35  {
36      local scriptname=$1