summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-10-01 13:29:45 +0000
committerru <ru@FreeBSD.org>2002-10-01 13:29:45 +0000
commitec9540417c9773b979c0b006f762db25255128ec (patch)
tree1547bd1d0f16073194e852bff171ee4908d6626c
parent16e3d2e21ed5d78f84df0e65bd08418447a5c8ef (diff)
downloadFreeBSD-src-ec9540417c9773b979c0b006f762db25255128ec.zip
FreeBSD-src-ec9540417c9773b979c0b006f762db25255128ec.tar.gz
test -h is deprecated; use -L instead.
PR: bin/40846
-rwxr-xr-xetc/rc.d/bootconf.sh2
-rw-r--r--etc/rc.d/diskless2
-rw-r--r--etc/rc.d/resolv2
-rwxr-xr-xetc/rc.d/syslogd2
-rw-r--r--etc/rc.d/tmp2
-rw-r--r--etc/rc.d/var2
-rw-r--r--etc/rc.diskless22
-rw-r--r--include/Makefile2
-rw-r--r--share/examples/Makefile2
-rwxr-xr-xtools/tools/upgrade/move_aout_libs.sh2
10 files changed, 10 insertions, 10 deletions
diff --git a/etc/rc.d/bootconf.sh b/etc/rc.d/bootconf.sh
index 1fdc201..aa2dc1b 100755
--- a/etc/rc.d/bootconf.sh
+++ b/etc/rc.d/bootconf.sh
@@ -15,7 +15,7 @@ bootconf_start()
if [ ! -e /etc/etc.current ]; then
return 0
fi
- if [ -h /etc/etc.default ]; then
+ if [ -L /etc/etc.default ]; then
def=`ls -ld /etc/etc.default 2>&1`
default="${def##*-> etc.}"
else
diff --git a/etc/rc.d/diskless b/etc/rc.d/diskless
index 6426caf..cef6e8a 100644
--- a/etc/rc.d/diskless
+++ b/etc/rc.d/diskless
@@ -103,7 +103,7 @@ fi
# XXX: mtree runs too early to create any directories needed in /tmp,
# so if /var/tmp == /tmp, then you don't get a vi.recover.
#
-if [ ! -h /tmp ]; then
+if [ ! -L /tmp ]; then
mount_md ${tmpsize:=64m} /tmp 2
chmod 01777 /tmp
fi
diff --git a/etc/rc.d/resolv b/etc/rc.d/resolv
index 6426caf..cef6e8a 100644
--- a/etc/rc.d/resolv
+++ b/etc/rc.d/resolv
@@ -103,7 +103,7 @@ fi
# XXX: mtree runs too early to create any directories needed in /tmp,
# so if /var/tmp == /tmp, then you don't get a vi.recover.
#
-if [ ! -h /tmp ]; then
+if [ ! -L /tmp ]; then
mount_md ${tmpsize:=64m} /tmp 2
chmod 01777 /tmp
fi
diff --git a/etc/rc.d/syslogd b/etc/rc.d/syslogd
index 9e1a0ee..03b6aad 100755
--- a/etc/rc.d/syslogd
+++ b/etc/rc.d/syslogd
@@ -37,7 +37,7 @@ syslogd_precmd()
{
# Transitional symlink for old binaries
#
- if [ ! -h /dev/log ]; then
+ if [ ! -L /dev/log ]; then
ln -sf /var/run/log /dev/log
fi
rm -f /var/run/log
diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp
index 6426caf..cef6e8a 100644
--- a/etc/rc.d/tmp
+++ b/etc/rc.d/tmp
@@ -103,7 +103,7 @@ fi
# XXX: mtree runs too early to create any directories needed in /tmp,
# so if /var/tmp == /tmp, then you don't get a vi.recover.
#
-if [ ! -h /tmp ]; then
+if [ ! -L /tmp ]; then
mount_md ${tmpsize:=64m} /tmp 2
chmod 01777 /tmp
fi
diff --git a/etc/rc.d/var b/etc/rc.d/var
index 6426caf..cef6e8a 100644
--- a/etc/rc.d/var
+++ b/etc/rc.d/var
@@ -103,7 +103,7 @@ fi
# XXX: mtree runs too early to create any directories needed in /tmp,
# so if /var/tmp == /tmp, then you don't get a vi.recover.
#
-if [ ! -h /tmp ]; then
+if [ ! -L /tmp ]; then
mount_md ${tmpsize:=64m} /tmp 2
chmod 01777 /tmp
fi
diff --git a/etc/rc.diskless2 b/etc/rc.diskless2
index 5c17585..f7a4f74 100644
--- a/etc/rc.diskless2
+++ b/etc/rc.diskless2
@@ -94,7 +94,7 @@ fi
# XXX: mtree runs too early to create any directories needed in /tmp,
# so if /var/tmp == /tmp, then you don't get a vi.recover.
#
-if [ ! -h /tmp ]; then
+if [ ! -L /tmp ]; then
mount_md ${tmpsize:=64m} /tmp 2
chmod 01777 /tmp
fi
diff --git a/include/Makefile b/include/Makefile
index 0212d8d..19f6189 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -84,7 +84,7 @@ INCSLINKS+= posix4/$i ${INCLUDEDIR}/$i
copies:
.for i in ${LDIRS} ${LSYMSUBDIRS} machine
- if [ -h ${DESTDIR}/usr/include/$i ]; then \
+ if [ -L ${DESTDIR}/usr/include/$i ]; then \
rm -f ${DESTDIR}/usr/include/$i; \
fi
.endfor
diff --git a/share/examples/Makefile b/share/examples/Makefile
index 72ea6bf..bd7f014 100644
--- a/share/examples/Makefile
+++ b/share/examples/Makefile
@@ -262,7 +262,7 @@ beforeinstall: ${SHARED} etc-examples
copies:
.for i in ${LDIRS}
- if [ -h ${DESTDIR}${BINDIR}/$i ]; then \
+ if [ -L ${DESTDIR}${BINDIR}/$i ]; then \
rm -f ${DESTDIR}${BINDIR}/$i; \
fi
.endfor
diff --git a/tools/tools/upgrade/move_aout_libs.sh b/tools/tools/upgrade/move_aout_libs.sh
index b00af52..e525200 100755
--- a/tools/tools/upgrade/move_aout_libs.sh
+++ b/tools/tools/upgrade/move_aout_libs.sh
@@ -88,7 +88,7 @@ move_if_aout ( )
do
# Don't touch symbolic links yet. It's not clear how
# they should be handled.
- if test -h $file; then
+ if test -L $file; then
else
# Check that this is a normal file.
if test -f $file; then
OpenPOWER on IntegriCloud