From 49f1a8702b49e4f1bf121bf22d4196e7199bacfa Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 4 Jul 2011 18:27:00 -0400 Subject: [PATCH] eat trailing whitespace Signed-off-by: Mike Frysinger --- init.d/modules.in | 4 ++-- net/ethtool.sh | 2 +- sh/udhcpc-hook.sh.in | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/init.d/modules.in b/init.d/modules.in index 631e2e57..e6737634 100644 --- a/init.d/modules.in +++ b/init.d/modules.in @@ -23,11 +23,11 @@ start() # remove any KV_EXTRA options to just get the full version x=${KV%%-*} # now slowly strip them - while [ -n "$x" ] && [ "$x" != "$y" ]; do + while [ -n "$x" ] && [ "$x" != "$y" ]; do kv_variant_list="${kv_variant_list} $x" y=$x x=${x%.*} - done + done local list= x= xx= y= args= mpargs= cnt=0 a= for x in $kv_variant_list ; do diff --git a/net/ethtool.sh b/net/ethtool.sh index d4dc11e4..21a22b65 100644 --- a/net/ethtool.sh +++ b/net/ethtool.sh @@ -29,7 +29,7 @@ ethtool_pre_start() { # Skip everything if no arguments [ -z "${args}" ] && continue - + # Split on \n local IFS="$__IFS" diff --git a/sh/udhcpc-hook.sh.in b/sh/udhcpc-hook.sh.in index a14cac99..1a581044 100644 --- a/sh/udhcpc-hook.sh.in +++ b/sh/udhcpc-hook.sh.in @@ -30,7 +30,7 @@ update_ntp() { peer_var "${PEER_NTP}" && return [ -z "${ntpsrv}" ] && return - + conf="# Generated by udhcpc for interface ${interface}\n" conf="${conf}restrict default noquery notrust nomodify\n" conf="${conf}restrict 127.0.0.1\n" @@ -64,7 +64,7 @@ update_interface() update_routes() { peer_var "${PEER_ROUTERS}" && return - + if [ -n "${router}" ] ; then metric= [ -n "${IF_METRIC}" ] && metric="metric ${IF_METRIC}"