mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
qemu: virtio-console-helper as a separate package
While at it, update copyright header. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2016 OpenWrt.org
|
||||
# Copyright (C) 2016 Yousong Zhou <yszhou4tech@gmail.com>
|
||||
|
||||
[ "$SUBSYSTEM" = "virtio-ports" ] || exit 0
|
||||
|
||||
@@ -11,7 +12,6 @@ case "$ACTION" in
|
||||
"add")
|
||||
mkdir -p /dev/virtio-ports
|
||||
ln -s "/dev/$DEVNAME" "/dev/virtio-ports/$name"
|
||||
/etc/init.d/qemu-ga start
|
||||
;;
|
||||
"del")
|
||||
rm -f "/dev/virtio-ports/$name"
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2016 OpenWrt.org
|
||||
# Copyright (C) 2016 Yousong Zhou <yszhou4tech@gmail.com>
|
||||
|
||||
[ "$SUBSYSTEM" = "virtio-ports" ] || exit 0
|
||||
|
||||
syspath="/sys/$DEVPATH"
|
||||
name="$(cat "$syspath/name" 2>/dev/null)"
|
||||
[ -n "$name" ] || exit 0
|
||||
|
||||
case "$ACTION" in
|
||||
"add")
|
||||
/etc/init.d/qemu-ga start
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user