echo "Locating Existing Devices"
for dev in $(ls /dev/vmnet*);
do
-echo " Found $dev"
+ echo " Found $dev"
done
echo
printf "Please enter a device number that does not exist in this list: "
read num
# Check if it exists
if [ -f /dev/vmnet$num ];then
-echo "/dev/vmnet$num exists! Exiting."
-exit 1
+ echo "/dev/vmnet$num exists! Exiting."
+ exit 1
fi
echo "Locating interfaces to bridge"
for int in $(ifconfig |grep "^[a-z,A-Z]" |cut -d' ' -f1);
do
-echo $int
+ echo $int
done
printf "Please enter a interface: "
read interface
ifconfig $interface >/dev/null 2>&1
ret=$?
if [ $ret != 0 ];then
-echo "Can't find interface. Exiting!"
-exit 1
+ echo "Can't find interface. Exiting!"
+ exit 1
fi