Changeset 31421 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Aug 5, 2010 7:44:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r30667 r31421 39 39 BIN_SVCCFG=/usr/sbin/svccfg 40 40 BIN_IFCONFIG=/sbin/ifconfig 41 BIN_SVCS=/usr/bin/svcs 41 42 BIN_ID=/usr/bin/id 42 43 … … 97 98 98 99 99 # check_bin_path()100 # print_bin_path() 100 101 # !! failure is always fatal 101 check_bin_path() 102 { 103 if test -z "$1"; then 104 errorprint "missing argument to check_bin_path()" 105 exit 1 106 fi 107 108 if test ! -x "$1"; then 109 errorprint "$1 missing or is not an executable" 110 exit 1 111 fi 112 return 0 102 find_bin_path() 103 { 104 binfilename=`basename $1` 105 binfilepath=`which $binfilename 2> /dev/null` 106 if test -x "$binfilepath"; then 107 echo "$binfilepath" 108 return 0 109 else 110 errorprint "$1, $2 missing or is not an executable" 111 exit 1 112 fi 113 113 } 114 114 … … 118 118 { 119 119 # Search only for binaries that might be in different locations 120 BIN_IFCONFIG=`which ifconfig 2> /dev/null` 121 BIN_SVCS=`which svcs 2> /dev/null` 122 BIN_ID=`which id 2> /dev/null` 123 124 check_bin_path "$BIN_ID" 125 check_bin_path "$BIN_ADDDRV" 126 check_bin_path "$BIN_REMDRV" 127 check_bin_path "$BIN_MODLOAD" 128 check_bin_path "$BIN_MODUNLOAD" 129 check_bin_path "$BIN_MODINFO" 130 check_bin_path "$BIN_DEVFSADM" 131 check_bin_path "$BIN_BOOTADM" 132 check_bin_path "$BIN_SVCADM" 133 check_bin_path "$BIN_SVCCFG" 134 check_bin_path "$BIN_SVCS" 135 check_bin_path "$BIN_IFCONFIG" 120 if test ! -x "$BIN_ID"; then 121 BIN_ID=`find_bin_path "$BIN_ID"` 122 fi 123 124 if test ! -x "$BIN_ADDDRV"; then 125 BIN_ADDDRV=`find_bin_path "$BIN_ADDDRV"` 126 fi 127 128 if test ! -x "$BIN_REMDRV"; then 129 BIN_REMDRV=`find_bin_path "$BIN_REMDRV"` 130 fi 131 132 if test ! -x "$BIN_MODLOAD"; then 133 BIN_MODLOAD=`check_bin_path "$BIN_MODLOAD"` 134 fi 135 136 if test ! -x "$BIN_MODUNLOAD"; then 137 BIN_MODUNLOAD=`find_bin_path "$BIN_MODUNLOAD"` 138 fi 139 140 if test ! -x "$BIN_MODINFO"; then 141 BIN_MODINFO=`find_bin_path "$BIN_MODINFO"` 142 fi 143 144 if test ! -x "$BIN_DEVFSADM"; then 145 BIN_DEVFSADM=`find_bin_path "$BIN_DEVFSADM"` 146 fi 147 148 if test ! -x "$BIN_BOOTADM"; then 149 BIN_BOOTADM=`find_bin_path "$BIN_BOOTADM"` 150 fi 151 152 if test ! -x "$BIN_BOOTADM"; then 153 BIN_SVCADM=`find_bin_path "$BIN_BOOTADM"` 154 fi 155 156 if test ! -x "$BIN_SVCCFG"; then 157 BIN_SVCCFG=`find_bin_path "$BIN_SVCCFG"` 158 fi 159 160 if test ! -x "$BIN_SVCS"; then 161 BIN_SVCS=`find_bin_path "$BIN_SVCS"` 162 fi 163 164 if test ! -x "$BIN_IFCONFIG"; then 165 BIN_IFCONFIG=`find_bin_path "$BIN_IFCONFIG"` 166 fi 136 167 } 137 168 … … 786 817 787 818 # And it begins... 819 find_bins 788 820 check_root 789 821 check_isa 790 822 check_zone 791 find_bins792 823 get_sysinfo 793 824 794 if test "x${BASEDIR }" != "x/"; then825 if test "x${BASEDIR:=/}" != "x/"; then 795 826 BASEDIR_OPT="-b ${BASEDIR}" 796 827 REMOTEINST=1
Note:
See TracChangeset
for help on using the changeset viewer.