Changeset 211
- Timestamp:
- 02/20/07 11:04:22 (2 years ago)
- Files:
-
- trunk/client/revimage/autorestore/revoboot (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/client/revimage/autorestore/revoboot
r197 r211 16 16 # if CDROM boot, then be less patient 17 17 grep -q revocdrom /etc/cmdline && MAXSEC=5 18 # CDROM + static ip mode 19 grep -q revocdromstatic /etc/cmdline && staticip 18 20 19 21 # check if eth0 is up … … 70 72 NM=255.255.255.0 71 73 while true; do 72 whiptail --title "Static IP" --backtitle "Linbox Rescue Server" --inputbox "Please enter the IP address below" 10 70 "$IP" 2>/tmp/res74 whiptail --title "Static IP" --backtitle "Linbox Rescue Server" --inputbox "Please enter the IP address:" 10 70 "$IP" 2>/tmp/res 73 75 IP=`cat /tmp/res` 74 whiptail --title "Static IP" --backtitle "Linbox Rescue Server" --inputbox "Please enter the netmask below" 10 70 "$NM" 2>/tmp/res76 whiptail --title "Static IP" --backtitle "Linbox Rescue Server" --inputbox "Please enter the netmask:" 10 70 "$NM" 2>/tmp/res 75 77 NM=`cat /tmp/res` 76 78 DEFGW=`echo $IP|cut -d. -f1-3`".1" 77 whiptail --title "Static IP" --backtitle "Linbox Rescue Server" --inputbox "Please enter the default gateway below" 10 70 "$DEFGW" 2>/tmp/res79 whiptail --title "Static IP" --backtitle "Linbox Rescue Server" --inputbox "Please enter the default gateway:" 10 70 "$DEFGW" 2>/tmp/res 78 80 GW=`cat /tmp/res` 79 whiptail --title "Static IP" --backtitle "Linbox Rescue Server" --inputbox "Please enter the LRS IP address below" 10 70 "$DEFGW" 2>/tmp/res81 whiptail --title "Static IP" --backtitle "Linbox Rescue Server" --inputbox "Please enter the LRS IP address:" 10 70 "$DEFGW" 2>/tmp/res 80 82 LRS=`cat /tmp/res` 81 83 ifconfig $ETH $IP netmask $NM 82 84 route add default gw $DEFGW 85 sleep 5 83 86 ping -c 1 $LRS >/dev/null && break 84 87 wecho "Cannot reach \"$LRS\". Please check the network configuration again." … … 238 241 # check if this action can be done 239 242 [ "$CMDLINE" ] && break 240 wechow "Sorry this entry can only be used with a PXE boot.\n \nBecause you are booting from a CDROM, not all LRS features are available. To set-up a PXE network boot, please refer thethe LRS manual."243 wechow "Sorry this entry can only be used with a PXE boot.\nBecause you are booting from a CDROM, some LRS features are not available. To set-up PXE network boot, please refer to the LRS manual." 241 244 done 242 245 # fake /proc/cmdline … … 340 343 if grep -q revosavedir /etc/cmdline ;then 341 344 # launch initial pre-inst scripts 342 do_pre_inst345 [ -x /bin/postmount ] && do_pre_inst 343 346 # Now backup/restore 344 347 if grep -q revorestore /etc/cmdline ;then … … 351 354 # Postinstall 352 355 if grep -q revopost /etc/cmdline ; then 353 do_postinst356 [ -x /bin/postmount ] && do_postinst 354 357 fi 355 358
