aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.shutdown.in
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-11-07 00:22:33 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-11-07 00:22:33 +0000
commit1b0130961ebc308bba4c9ced3988558bfac103d9 (patch)
tree40dcef0a3f194d4741a8ae3ea9c12015e0bc89df /etc/rc.shutdown.in
parent3809eac54d575d52d8793df38f826f1d7d7398fb (diff)
checkbashisms: clean up export statements.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'etc/rc.shutdown.in')
-rw-r--r--etc/rc.shutdown.in4
1 files changed, 2 insertions, 2 deletions
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}"