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