diff options
Diffstat (limited to 'source/a/pkgtools/scripts/setup.80.make-bootdisk')
-rw-r--r-- | source/a/pkgtools/scripts/setup.80.make-bootdisk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/a/pkgtools/scripts/setup.80.make-bootdisk b/source/a/pkgtools/scripts/setup.80.make-bootdisk index 0ed8b9a1..d1dffe98 100644 --- a/source/a/pkgtools/scripts/setup.80.make-bootdisk +++ b/source/a/pkgtools/scripts/setup.80.make-bootdisk @@ -36,7 +36,7 @@ while [ 0 ]; do # the bootdisk menu loop /sbin/rescan-scsi-bus -l 1>$RDIR 2>$RDIR # Get a list of removable block devices before the USB stick is inserted: echo "" > $TMP/remov_prior - for BDEV in $(ls --indicator-style none /sys/block | egrep -v "loop|ram"); do + for BDEV in $(ls --indicator-style none /sys/block | grep -E -v "loop|ram"); do [ -r /sys/block/$BDEV/removable -a "$(cat /sys/block/$BDEV/removable)" == "1" ] \ && echo $BDEV >> $TMP/remov_prior done @@ -64,7 +64,7 @@ WARNING! The existing contents of the USB stick will be erased. \n\ /sbin/rescan-scsi-bus -l 1>$RDIR 2>$RDIR # Get a list of removable block devices after the USB stick is inserted: echo "" > $TMP/remov_after - for BDEV in $(ls --indicator-style none /sys/block | egrep -v "loop|ram"); do + for BDEV in $(ls --indicator-style none /sys/block | grep -E -v "loop|ram"); do [ -r /sys/block/$BDEV/removable -a "$(cat /sys/block/$BDEV/removable)" == "1" ] \ && echo $BDEV >> $TMP/remov_after done |