Skip to content

Commit

Permalink
installer: avoid tty devices
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jul 29, 2021
1 parent ed87f04 commit 367d6c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/opnsense.subr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ opnsense_load_disks()
continue
fi

if [ -n "$(echo ${DEVICE} | grep -i "^tty")" ]; then
continue
fi

if diskinfo ${DEVICE} > /tmp/diskinfo.tmp 2> /dev/null; then
SIZE=$(cat /tmp/diskinfo.tmp | awk '{ print $3 }')
eval "export ${DEVICE}_size=${SIZE}"
Expand Down

0 comments on commit 367d6c6

Please sign in to comment.