Bladeren bron

fix syntax. grr...

Ralf S. Engelschall 22 jaren geleden
bovenliggende
commit
6049a7d9bd
2 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 1 1
      ntp/ntp.spec
  2. 5 5
      ntp/rc.ntp

+ 1 - 1
ntp/ntp.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [CORE]
 Group:        Network
 License:      BSD-style
 Version:      4.1.2
-Release:      20030807
+Release:      20030811
 
 #   package options
 %option       with_fsl  yes

+ 5 - 5
ntp/rc.ntp

@@ -71,15 +71,15 @@
 
 %quarterly -u @l_susr@
     rcService ntp enable yes || exit 0
-    if [ ".$ntp_mode" = ".quarterly" ] && sleep 30 && ntp_once
+    [ ".$ntp_mode" = ".quarterly" ] && sleep 30 && ntp_once
 
 %hourly -u @l_susr@
     rcService ntp enable yes || exit 0
-    if [ ".$ntp_mode" = ".hourly" ] && sleep 30 && ntp_once
+    [ ".$ntp_mode" = ".hourly" ] && sleep 30 && ntp_once
 
 %daily -u @l_susr@
     rcService ntp enable yes || exit 0
-    if [ ".$ntp_mode" = ".daily" ] && sleep 30 && ntp_once
+    [ ".$ntp_mode" = ".daily" ] && sleep 30 && ntp_once
 
     #   rotate logfile
     shtool rotate -f \
@@ -91,9 +91,9 @@
 
 %weekly -u @l_susr@
     rcService ntp enable yes || exit 0
-    if [ ".$ntp_mode" = ".weekly" ] && sleep 30 && ntp_once
+    [ ".$ntp_mode" = ".weekly" ] && sleep 30 && ntp_once
 
 %monthly -u @l_susr@
     rcService ntp enable yes || exit 0
-    if [ ".$ntp_mode" = ".monthly" ] && sleep 30 && ntp_once
+    [ ".$ntp_mode" = ".monthly" ] && sleep 30 && ntp_once