Przeglądaj źródła

netsnmp: fix tab/space formatting in init.d script

The S59snmpd script has a strange mix of tabs and spaces.  Replace
tabs with spaces, and also remove unnecessary line continuations
from the start-stop-daemon lines, as none of them go beyond 80
columns.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Danomi Manchego 11 lat temu
rodzic
commit
9ef8f8e9c5
1 zmienionych plików z 12 dodań i 15 usunięć
  1. 12 15
      package/netsnmp/S59snmpd

+ 12 - 15
package/netsnmp/S59snmpd

@@ -42,14 +42,12 @@ case "$1" in
   start)
   start)
     echo -n "Starting network management services:"
     echo -n "Starting network management services:"
     if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
     if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
-	start-stop-daemon -q -S -x /usr/sbin/snmpd \
-	    -- $SNMPDOPTS
-	echo -n " snmpd"
+      start-stop-daemon -q -S -x /usr/sbin/snmpd -- $SNMPDOPTS
+      echo -n " snmpd"
     fi
     fi
     if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
     if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
-	start-stop-daemon -q -S -x /usr/sbin/snmptrapd \
-	    -- $TRAPDOPTS
-	echo -n " snmptrapd"
+      start-stop-daemon -q -S -x /usr/sbin/snmptrapd -- $TRAPDOPTS
+      echo -n " snmptrapd"
     fi
     fi
     echo "."
     echo "."
     ;;
     ;;
@@ -68,23 +66,22 @@ case "$1" in
     # Allow the daemons time to exit completely.
     # Allow the daemons time to exit completely.
     sleep 2
     sleep 2
     if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
     if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
-	start-stop-daemon -q -S -x /usr/sbin/snmpd -- $SNMPDOPTS
-	echo -n " snmpd"
+      start-stop-daemon -q -S -x /usr/sbin/snmpd -- $SNMPDOPTS
+      echo -n " snmpd"
     fi
     fi
     if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
     if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
-	# Allow snmpd time to start up.
-	sleep 1
-	start-stop-daemon -q -S -x /usr/sbin/snmptrapd -- $TRAPDOPTS
-	echo -n " snmptrapd"
+      # Allow snmpd time to start up.
+      sleep 1
+      start-stop-daemon -q -S -x /usr/sbin/snmptrapd -- $TRAPDOPTS
+      echo -n " snmptrapd"
     fi
     fi
     echo "."
     echo "."
     ;;
     ;;
   reload|force-reload)
   reload|force-reload)
     echo -n "Reloading network management services:"
     echo -n "Reloading network management services:"
     if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
     if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
-        start-stop-daemon -q -K -s 1 \
-	    -p /var/run/snmpd.pid -x /usr/sbin/snmpd
-	echo -n " snmpd"
+      start-stop-daemon -q -K -s 1 -p /var/run/snmpd.pid -x /usr/sbin/snmpd
+      echo -n " snmpd"
     fi
     fi
     echo "."
     echo "."
     ;;
     ;;