Browse Source

bugfix systemd working 27.06.18:4.43

master 5 years ago
parent
commit
cd851a79ad
1 changed files with 3 additions and 12 deletions
  1. 3 12
      zramraid.deb/etc/init.d/zramraid-manager

+ 3 - 12
zramraid.deb/etc/init.d/zramraid-manager

@@ -24,7 +24,7 @@ if [[ "$PARMS" = '' ]];
24 24
  exit 0
25 25
 fi
26 26
 
27
-function zBoot() {
27
+function zRun() {
28 28
 if [ ! $(echo $USER|grep root|wc -m) = 0 ]
29 29
     then
30 30
     if [ $(cat $MODE |grep mode|grep -v '#'|sed 's/\mode=//g'|sed 's/\"//g;s/\;//g'|grep auto|wc -m) == 0 ]
@@ -34,19 +34,10 @@ if [ ! $(echo $USER|grep root|wc -m) = 0 ]
34 34
 	else
35 35
 	$ZPATH/$SCRIPTNAME --on
36 36
     fi
37
-    echo "$NAME:Sorry.. The only root privileges! user:$USER"
38
-    exit 0;
39
-fi
40
-}
41
-
42
-function zRun() {
43
-if [ ! $(echo $USER|grep root|wc -m) = 0 ]
44
-    then
45
-	$ZPATH/$SCRIPTNAME --on
46
-    else
47
-    echo "$NAME:Sorry.. The only root privileges! user:$USER"
48 37
     exit 0;
49 38
 fi
39
+echo "$NAME:Sorry.. The only root privileges!"
40
+exit 0;
50 41
 }
51 42
 
52 43
 ### begin