Commit 2604d2f1 authored by Natanael Copa's avatar Natanael Copa

main/lxc: fix lxc-bridge config

parent ce44a928
......@@ -5,7 +5,7 @@
pkgname=lxc
pkgver=2.0.7
_pkgver=${pkgver/_rc/.rc}
pkgrel=3
pkgrel=4
pkgdesc="Userspace interface for the Linux kernel containment features"
url="https://linuxcontainers.org/lxc/"
arch="all"
......@@ -127,7 +127,7 @@ bridge() {
"$subpkgdir"/etc/lxc
ln -s dnsmasq "$subpkgdir"/etc/init.d/dnsmasq.lxcbr0
cat ->>"$subpkgdir"/etc/conf.d/dnsmasq.lxcbr0 <<EOF
cat >>"$subpkgdir"/etc/conf.d/dnsmasq.lxcbr0 <<- EOF
BRIDGE_ADDR="10.0.3.1"
BRIDGE_NETMASK="255.255.255.0"
BRIDGE_NETWORK="10.0.3.0/24"
......@@ -136,12 +136,12 @@ bridge() {
BRIDGE_MAC="00:16:3e:00:00:00"
DNSMASQ_CONFFILE="/etc/lxc/dnsmasq.conf"
EOF
cat ->>"$subpkgdir"/etc/lxc/dnsmasq.conf <<EOF
cat >>"$subpkgdir"/etc/lxc/dnsmasq.conf <<- EOF
#dhcp-host=somehost,10.0.3.3
#dhcp-host=otherhost,10.0.3.4
EOF
cat ->>"$subpkgdir"/etc/conf.d/lxc <<EOF
rc_need="lxc-bridge"
cat >>"$subpkgdir"/etc/conf.d/lxc <<- EOF
rc_need="dnsmasq.lxcbr0"
EOF
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment