diff options
author | M0Rf30 | 2018-05-21 13:53:10 +0200 |
---|---|---|
committer | M0Rf30 | 2018-05-21 13:53:10 +0200 |
commit | 45320cdd749a8b175960ae7ce7c1b9442e6c9724 (patch) | |
tree | 793bbe69cd684450a09265a34a59f75ade88afe9 | |
parent | 59025f2f4e6790ba501befae48ee83c0f42af1c1 (diff) | |
download | aur-45320cdd749a8b175960ae7ce7c1b9442e6c9724.tar.gz |
simonpi-git: removed qemu-guest-agent and modified .install
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | simonpi-git.install | 10 |
3 files changed, 10 insertions, 4 deletions
@@ -19,7 +19,6 @@ pkgbase = simonpi-git depends = ovmf-arm depends = ovmf-aarch64 depends = procps-ng - depends = qemu-guest-agent depends = qemu-headless-arch-extra depends = sudo depends = util-linux @@ -7,8 +7,7 @@ pkgdesc="A quick & dirty script to emulate Raspberry PI family devices on your l arch=(any) url="https://github.com/M0Rf30/simonpi" license=('GPL') -depends=('coreutils' 'dnsmasq' 'dosfstools' 'e2fsprogs' 'file' 'grep' 'iproute2' 'iptables' 'libarchive' 'ovmf-arm' 'ovmf-aarch64' 'procps-ng' 'qemu-guest-agent' - 'qemu-headless-arch-extra' 'sudo' +depends=('coreutils' 'dnsmasq' 'dosfstools' 'e2fsprogs' 'file' 'grep' 'iproute2' 'iptables' 'libarchive' 'ovmf-arm' 'ovmf-aarch64' 'procps-ng' 'qemu-headless-arch-extra' 'sudo' 'util-linux' 'wget') makedepends=('git') install=simonpi-git.install diff --git a/simonpi-git.install b/simonpi-git.install index e300e5686590..995780db3988 100644 --- a/simonpi-git.install +++ b/simonpi-git.install @@ -1,7 +1,15 @@ +qemuconf=/etc/qemu/ + post_install() { - echo "allow rasp-br0" >> /etc/qemu/bridge.conf + + if [ ! -d $qemuconfs ]; then + mkdir "$qemuconf" + fi + + echo "allow rasp-br0" >> "$qemuconf"/bridge.conf } post_remove() { sed -i '/rasp-br0/d' /etc/qemu/bridge.conf + echo "Please remember to remove $qemuconf/bridge.conf if not needed" } |