mirror of
git://slackware.nl/current.git
synced 2025-01-10 05:25:51 +01:00
14 lines
391 B
Bash
14 lines
391 B
Bash
|
#!/bin/sh
|
||
|
#
|
||
|
# This resets the temporary directory to /tmp on the floppy in the
|
||
|
# case where it's been changed during a previous 'setup' run. This
|
||
|
# should be done before $TMP is cleared.
|
||
|
#
|
||
|
|
||
|
TMPLINK="`LC_ALL=C /bin/ls -l /var/log/setup/tmp | tr -s ' ' | cut -f 11 -d ' '`"
|
||
|
if [ -L /var/log/setup/tmp -a ! "$TMPLINK" = "/tmp" ]; then
|
||
|
( cd /var/log/setup
|
||
|
rm tmp
|
||
|
ln -sf /tmp tmp )
|
||
|
fi
|