Changeset 7022 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Feb 19, 2008 2:32:53 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/VBoxAddIF.sh
r6868 r7022 61 61 } 62 62 63 valid_ifname() {64 if expr match "$1" "vbox[0-9][0-9]*$" > /dev/null 2>&165 then66 return 067 else68 return 169 fi70 }71 72 63 # Check which name we were called under, and exit if it was not recognised. 73 64 if [ ! "$appname" = "$appadd" -a ! "$appname" = "$appdel" ] … … 93 84 fi 94 85 fi 95 # Check that the interface name is valid if we are adding it. If we are96 # deleting it then the user will get a better error message later if it is97 # invalid as the interface will not exist.98 if [ "$appname" = "$appadd" ]99 then100 if ! valid_ifname "$interface"101 then102 usage103 exit 1104 fi105 fi106 107 86 108 87 # Make sure that we can create files in the configuration directory … … 148 127 # or two non-comment entries, possibly followed by a comment). 149 128 if ((expr match "$2" "#" > /dev/null) || 150 (! test -z "$4" && ! expr match "$4" "#" > /dev/null) || 151 (! valid_ifname "$1")) 129 (! test -z "$4" && ! expr match "$4" "#" > /dev/null)) 152 130 then 153 131 echo 1>&2 ""
Note:
See TracChangeset
for help on using the changeset viewer.