qemu-ifup-br0: init at 1.0.0
parent
8ab3a760ba
commit
b7a473f273
|
@ -0,0 +1,22 @@
|
|||
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
||||
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
||||
pkgname=qemu-ifup-br0
|
||||
pkgver=1.0.0
|
||||
pkgrel=0
|
||||
pkgdesc="qemu-ifup script which adds a tuntap device to br0"
|
||||
url="https://git.sakamoto.pl/laudompat/alpine-repo"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends=""
|
||||
makedepends=""
|
||||
install=""
|
||||
subpackages=""
|
||||
source="qemu-ifup"
|
||||
builddir="$srcdir/tmp"
|
||||
options="!check"
|
||||
|
||||
package() {
|
||||
install -Dm755 "$srcdir/qemu-ifup" "$pkgdir/etc/qemu-ifup"
|
||||
}
|
||||
|
||||
sha512sums="13f081cb64c52f5561a61e30b2f3251f114b843eab275a56e6929d06ae16a447c99489c9acd0edbc52b00ba275a3897cf81c50864bed5bef7d8a63b284450e25 qemu-ifup"
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
ip tuntap add $1 mode tap user $(whoami)
|
||||
ip link set $1 up
|
||||
ip link set $1 master br0
|
||||
exit 0
|
||||
else
|
||||
echo "Error: no interface specified"
|
||||
exit 1
|
||||
fi
|
Loading…
Reference in New Issue