summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/fsck
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2002-09-06 16:18:05 +0000
committergordon <gordon@FreeBSD.org>2002-09-06 16:18:05 +0000
commita7f04bb2b79fce3619508825b96c5564b044a9cf (patch)
tree5bf37a1aebd8c46b4ce8523e594efce97ad8ee38 /etc/rc.d/fsck
parent390d72be15b0b886ecec8a4ce9879fadaa97f9a9 (diff)
downloadFreeBSD-src-a7f04bb2b79fce3619508825b96c5564b044a9cf.zip
FreeBSD-src-a7f04bb2b79fce3619508825b96c5564b044a9cf.tar.gz
Convert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation on
OS-dependent case switches.
Diffstat (limited to 'etc/rc.d/fsck')
-rwxr-xr-xetc/rc.d/fsck4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/fsck b/etc/rc.d/fsck
index a57e15c..1a33532 100755
--- a/etc/rc.d/fsck
+++ b/etc/rc.d/fsck
@@ -34,7 +34,7 @@ fsck_start()
trap : 3
echo "Starting file system checks:"
- case `${CMD_OSTYPE}` in
+ case ${OSTYPE} in
FreeBSD)
if checkyesno background_fsck; then
fsck -F -p
@@ -60,7 +60,7 @@ fsck_start()
stop_boot
;;
8)
- case `${CMD_OSTYPE}` in
+ case ${OSTYPE} in
FreeBSD)
if checkyesno fsck_y_enable; then
echo "File system preen failed, trying fsck -y."
OpenPOWER on IntegriCloud