"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/common/input.sh" between
fogproject-1.5.6.tar.gz and fogproject-1.5.7.tar.gz

About: FOG is a Linux-based network computer cloning solution for Windows, Mac OSX and various Linux distributions that ties together a few open-source tools with a PHP-based web interface. FOG doesn\PKG_DESCR_TTrsquo;t use any boot disks, or CDs; everything is done via TFTP and PXE.

input.sh  (fogproject-1.5.6):input.sh  (fogproject-1.5.7)
skipping to change at line 140 skipping to change at line 140
fi fi
submask=$(cidr2mask $(getCidr $interface)) submask=$(cidr2mask $(getCidr $interface))
if [[ -z $submask ]]; then if [[ -z $submask ]]; then
submask=$(/sbin/ifconfig -a | grep $ipaddress -B1 | awk -F'[netmask ]+' '{print $4}' | head -n2) submask=$(/sbin/ifconfig -a | grep $ipaddress -B1 | awk -F'[netmask ]+' '{print $4}' | head -n2)
submask=$(mask2cidr $submask) submask=$(mask2cidr $submask)
fi fi
done done
if [[ $strSuggestedHostname == $ipaddress ]]; then if [[ $strSuggestedHostname == $ipaddress ]]; then
strSuggestedHostname=$(hostnamectl --static) strSuggestedHostname=$(hostnamectl --static)
fi fi
while [[ -z $hostname ]]; do
blHost="N"
if [[ -z $autoaccept ]]; then
echo
echo " Would you like to change the default hostname $strSuggestedHostn
ame?"
echo " The fully qualified hostname is used for the webserver certifica
te."
echo -n " If you are not sure, select No. [y/N] "
read blHost
fi
case $blHost in
[Nn]|[Nn][Oo]|"")
hostname=$strSuggestedHostname
;;
[Yy]|[Yy][Ee][Ss])
echo -n " Which hostname would you like to use? "
read hostname
;;
*)
echo " Invalid input, please try again."
;;
esac
done
case $installtype in case $installtype in
[Nn]) [Nn])
count=0 count=0
blRouter="" blRouter=""
blDNS="" blDNS=""
installlang="" installlang=""
while [[ -z $routeraddress ]]; do while [[ -z $routeraddress ]]; do
if [[ -z $autoaccept ]]; then if [[ -z $autoaccept ]]; then
echo echo
echo -n " Would you like to setup a router address for the DHCP server? [Y/n] " echo -n " Would you like to setup a router address for the DHCP server? [Y/n] "
 End of changes. 1 change blocks. 
24 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)