From 1b0130961ebc308bba4c9ced3988558bfac103d9 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Wed, 7 Nov 2012 00:22:33 +0000 Subject: checkbashisms: clean up export statements. Signed-off-by: Robin H. Johnson --- etc/rc.conf.in | 2 +- etc/rc.devd | 5 +++-- etc/rc.in | 2 +- etc/rc.shutdown.in | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) (limited to 'etc') diff --git a/etc/rc.conf.in b/etc/rc.conf.in index e49a410c..1536aa5b 100644 --- a/etc/rc.conf.in +++ b/etc/rc.conf.in @@ -101,7 +101,7 @@ # Some daemons are started and stopped via start-stop-daemon. # We can set some things on a per service basis, like the nicelevel. -#export SSD_NICELEVEL="-19" +#SSD_NICELEVEL="-19" # Pass ulimit parameters #rc_ulimit="-u 30" diff --git a/etc/rc.devd b/etc/rc.devd index 272a413a..11f27ebf 100644 --- a/etc/rc.devd +++ b/etc/rc.devd @@ -3,8 +3,9 @@ # Released under the 2-clause BSD license. # Inform RC that we are in the background and hotplugged -export IN_BACKGROUND=yes -export IN_HOTPLUG=yes +IN_BACKGROUND=yes +IN_HOTPLUG=yes +export IN_BACKGROUND IN_HOTPLUG getmedia() { ifconfig "$1" | while read line; do diff --git a/etc/rc.in b/etc/rc.in index a58ff1eb..864bd1ba 100644 --- a/etc/rc.in +++ b/etc/rc.in @@ -4,7 +4,7 @@ # If $TERM is not set then assume default of @TERM@ # This gives us a nice colour boot :) -[ -z "$TERM" -o "$TERM" = "dumb" ] && export TERM="@TERM@" +[ -z "$TERM" -o "$TERM" = "dumb" ] && TERM="@TERM@" && export TERM # Handle interrupts trap : SIGINT diff --git a/etc/rc.shutdown.in b/etc/rc.shutdown.in index 92aef92e..216e2f84 100644 --- a/etc/rc.shutdown.in +++ b/etc/rc.shutdown.in @@ -7,11 +7,11 @@ trap : SIGINT SIGQUIT # Try and use stuff in /lib over anywhere else so we can shutdown # local mounts correctly. -export LD_LIBRARY_PATH="/lib${LD_LIBRARY_PATH:+:}${LDLIBRARY_PATH}" +LD_LIBRARY_PATH="/lib${LD_LIBRARY_PATH:+:}${LDLIBRARY_PATH}" ; export LD_LIBRARY_PATH # If $TERM is not set then assume default of @TERM@ # This gives us a nice colour boot :) -[ -z "$TERM" -o "$TERM" = "dumb" ] && export TERM="@TERM@" +[ -z "$TERM" -o "$TERM" = "dumb" ] && TERM="@TERM@" && export TERM action=${1:-shutdown} exec /sbin/rc "${action}" -- cgit v1.2.3