You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config-lxc 460B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. wd=`pwd`
  3. if [ -z "$LXC_GUEST_IP" ]; then
  4. LXC_GUEST_IP=10.0.2.5
  5. fi
  6. if [ -z "$LXC_BRIDGE" ]; then
  7. LXC_BRIDGE=br0
  8. fi
  9. OLD_IFS=$IFS
  10. IFS=.
  11. VERSION=($(lxc-start --version))
  12. IFS=$OLD_IFS
  13. if [ $VERSION -ge 3 ]; then
  14. LXC_CONFIG=etc/lxc.3.config.in
  15. else
  16. LXC_CONFIG=etc/lxc.config.in
  17. fi
  18. sed "s;ROOTFS;$wd/target-$LXC_SUITE-$LXC_ARCH;;s;ARCH;$LXC_ARCH;g;;s;GUESTIP;$LXC_GUEST_IP;g;s;GUESTLINK;$LXC_BRIDGE;g" < $LXC_CONFIG > var/lxc.config