1 #!/bin/bash 2 3 # Main configuration: 4 if [ -e userinstall-defaults ]; then 5 source userinstall-defaults 6 elif [ -e /etc/default/userinstall ]; then 7 source /etc/default/userinstall 8 else 9 echo "No defaults found for userinstall." 10 exit 1 11 fi 12 13 # Configuration details for building a UML instance. 14 15 export UMLROOT=$HOME/.userinstall-uml 16 17 # Optional settings. 18 # Guest: the address used inside the UML instance 19 # Host: the extra address provided for communication with the UML instance 20 # Devices: the tunnelling device (or interface) used by the actual machine, plus 21 # the device (or interface) used inside the UML instance 22 23 export GUESTADDRESS=192.168.0.99 24 export HOSTADDRESS=192.168.0.254 25 export TUNDEVICE=tap0 26 export NETDEVICE=eth0