Logoj0ke.net Open Build Service > Projects > home:netmax:tools > func > Changes
Sign Up | Log In

Changes of Revision 6

[-] Changed func.spec
x
 
1
@@ -104,10 +104,10 @@
2
 %post
3
 # for suse 
4
 if [ -x /usr/lib/lsb/install_initd ]; then
5
-  /usr/lib/lsb/install_initd /etc/init.d/funcd
6
+  /usr/lib/lsb/install_initd /etc/init.d/funcd || :
7
 # for red hat distros
8
 elif [ -x /sbin/chkconfig ]; then
9
-  /sbin/chkconfig --add funcd
10
+  /sbin/chkconfig --add funcd || :
11
 # or, the old fashioned way
12
 else
13
    for i in 2 3 4 5; do
14
@@ -127,9 +127,9 @@
15
 if [ "$1" = 0 ] ; then
16
   /etc/init.d/funcd stop  > /dev/null 2>&1
17
   if [ -x /usr/lib/lsb/remove_initd ]; then
18
-    /usr/lib/lsb/remove_initd /etc/init.d/funcd
19
+    /usr/lib/lsb/remove_initd /etc/init.d/funcd || :
20
   elif [ -x /sbin/chkconfig ]; then
21
-    /sbin/chkconfig --del funcd
22
+    /sbin/chkconfig --del funcd || :
23
   else
24
     rm -f /etc/rc.d/rc?.d/???funcd
25
   fi
26