eat trailing whitespace

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2011-07-04 18:27:00 -04:00
parent be990b308a
commit 49f1a8702b
3 changed files with 5 additions and 5 deletions

View File

@ -23,11 +23,11 @@ start()
# remove any KV_EXTRA options to just get the full version # remove any KV_EXTRA options to just get the full version
x=${KV%%-*} x=${KV%%-*}
# now slowly strip them # now slowly strip them
while [ -n "$x" ] && [ "$x" != "$y" ]; do while [ -n "$x" ] && [ "$x" != "$y" ]; do
kv_variant_list="${kv_variant_list} $x" kv_variant_list="${kv_variant_list} $x"
y=$x y=$x
x=${x%.*} x=${x%.*}
done done
local list= x= xx= y= args= mpargs= cnt=0 a= local list= x= xx= y= args= mpargs= cnt=0 a=
for x in $kv_variant_list ; do for x in $kv_variant_list ; do

View File

@ -29,7 +29,7 @@ ethtool_pre_start() {
# Skip everything if no arguments # Skip everything if no arguments
[ -z "${args}" ] && continue [ -z "${args}" ] && continue
# Split on \n # Split on \n
local IFS="$__IFS" local IFS="$__IFS"

View File

@ -30,7 +30,7 @@ update_ntp()
{ {
peer_var "${PEER_NTP}" && return peer_var "${PEER_NTP}" && return
[ -z "${ntpsrv}" ] && return [ -z "${ntpsrv}" ] && return
conf="# Generated by udhcpc for interface ${interface}\n" conf="# Generated by udhcpc for interface ${interface}\n"
conf="${conf}restrict default noquery notrust nomodify\n" conf="${conf}restrict default noquery notrust nomodify\n"
conf="${conf}restrict 127.0.0.1\n" conf="${conf}restrict 127.0.0.1\n"
@ -64,7 +64,7 @@ update_interface()
update_routes() update_routes()
{ {
peer_var "${PEER_ROUTERS}" && return peer_var "${PEER_ROUTERS}" && return
if [ -n "${router}" ] ; then if [ -n "${router}" ] ; then
metric= metric=
[ -n "${IF_METRIC}" ] && metric="metric ${IF_METRIC}" [ -n "${IF_METRIC}" ] && metric="metric ${IF_METRIC}"