summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-07 03:07:08 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-07 03:07:08 +0000
commitf321b3a2f918de5b4467423ab808ed91ed0a0877 (patch)
treeabdb3d0c54eaffecda3938b4acac6a03775d5592 /etc/rc.initial
parente84918266b5bcf251047b6422dcccfc8ed64fa18 (diff)
downloadpfsense-f321b3a2f918de5b4467423ab808ed91ed0a0877.zip
pfsense-f321b3a2f918de5b4467423ab808ed91ed0a0877.tar.gz
MFC 13617
The conditional fails if /var/db/pfi/capable_* expands to more than one file as [ -f ... ] can only be used to check a single file. Use a loop with a break to get around this.
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-xetc/rc.initial7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/rc.initial b/etc/rc.initial
index 0b1357a..8e67c02 100755
--- a/etc/rc.initial
+++ b/etc/rc.initial
@@ -73,11 +73,12 @@ echo " 8) Shell"
echo " 9) PFtop"
echo "10) Filter Logs"
echo "11) Restart webConfigurator"
-if [ -f /var/db/pfi/capable_* ]; then
- if [ ! -L /cf/conf ]; then
+for i in /var/db/pfi/capable_*; do
+ if [ -f $i -a ! -L /cf/conf ]; then
echo "98) Move configuration file to removable device"
+ break
fi
-fi
+done
if [ "$PLATFORM" = "cdrom" ]; then
echo "99) Install pfSense to a hard drive/memory drive, etc."
OpenPOWER on IntegriCloud