Ticket #333: debathena-jaunty-installer-sh.patch
File debathena-jaunty-installer-sh.patch, 1.9 KB (added by broder, 14 years ago) |
---|
-
debathena-jaunty/installer.sh
../ 160 160 egrep -v '(^$|^#)' < preseed.autoinstall >> preseed 161 161 fi 162 162 163 if [ -z "$mirrorsite" ] ; then mirrorsite=ubuntu.media.mit.edu ; fi 164 163 165 # Set up a usable static network config, since the DHCP address is not very useful. 164 netconfig 166 if [ choose = $pxetype ]; then 167 if ping $mirrorsite ; then 168 if ip address | grep ' inet 18\.' >/dev/null ; then 169 echo "Your computer seems to be registered on MITnet." 170 else 171 echo "Your computer seems not to be registered on MITnet, but the mirror" 172 echo "site $mirrorsite is accessible." 173 fi 174 echo 175 echo "${ccc}You can continue the install using your existing dynamic address.${nnn}" 176 echo -n "Configure a static address anyway? [y/N]: " 177 while : ; do 178 read r 179 case "$r" in 180 N*|n*|"") break;; 181 y*|Y*) netconfig; break;; 182 esac 183 echo -n "Choose: [y/N]: " 184 done 185 else 186 echo "The mirror site $mirrorsite is NOT accessible in your current" 187 echo "dynamic configuration." 188 echo 189 echo "${rrr}You must specify a static address for the installation.${nnn}" 190 netconfig 191 fi 192 else 193 netconfig 194 fi 165 195 166 196 # Shovel in the generically useful preseed stuff regardless. 167 197 egrep -v '(^$|^#)' < preseed.common >> preseed 168 # ...and the specified network config. 169 cat >> preseed <<EOF 198 199 if [ "$IPADDR" ] ; then 200 # ...and the specified network config. 201 cat >> preseed <<EOF 170 202 d-i netcfg/get_nameservers string 18.72.0.3 171 203 d-i netcfg/get_ipaddress string $IPADDR 172 204 d-i netcfg/get_netmask string $NETMASK 173 205 d-i netcfg/get_gateway string $GATEWAY 174 206 d-i netcfg/confirm_static boolean true 175 207 EOF 176 177 if [ -z "$mirrorsite" ] ; then mirrorsite=ubuntu.media.mit.edu ; fi 208 fi 178 209 179 210 # Perferred hostname of mirror site 180 211 cat >> preseed <<EOF