Skip to contentSkip to conversation

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

PATCH New Danomi Manchego 2 participants 2 messages Mar 28, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/netsnmp/S59snmpd |   27 ++++++++++++---------------
 1 file changed, 12 insertions(+), 15 deletions(-)
package/netsnmp/S59snmpd +12 -15
index 5df4b85..868be26 100755
@@ -42,14 +42,12 @@ case "$1" in
   start)
     echo -n "Starting network management services:"
     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
     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
     echo "."
     ;;
@@ -68,23 +66,22 @@ case "$1" in
     # Allow the daemons time to exit completely.
     sleep 2
     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
     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
     echo "."
     ;;
   reload|force-reload)
     echo -n "Reloading network management services:"
     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
     echo "."
     ;;
Signature · 1 line
1.7.9.5
#1 lore raw

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

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Danomi" == Danomi Manchego <[email protected]> writes:

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.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard