diff --git a/srcpkgs/pinephone-base/files/90-modem-eg25.rules b/srcpkgs/pinephone-base/files/90-modem-eg25.rules new file mode 100644 index 0000000000..cd0031422c --- /dev/null +++ b/srcpkgs/pinephone-base/files/90-modem-eg25.rules @@ -0,0 +1,5 @@ +SUBSYSTEMS=="usb", ENV{.LOCAL_ifNum}="$attr{bInterfaceNumber}" + +SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="01", SYMLINK+="EG25.NMEA", MODE="0660" +SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="02", SYMLINK+="EG25.AT", MODE="0660" +SUBSYSTEMS=="usb", KERNEL=="ttyUSB[0-9]*", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ENV{.LOCAL_ifNum}=="03", SYMLINK+="EG25.MODEM", MODE="0660" diff --git a/srcpkgs/pinephone-base/template b/srcpkgs/pinephone-base/template new file mode 100644 index 0000000000..6c750a92bd --- /dev/null +++ b/srcpkgs/pinephone-base/template @@ -0,0 +1,15 @@ +# Template file for 'pinephone-base' +pkgname=pinephone-base +version=0.1 +revision=1 +archs="aarch64*" +build_style=meta +depends="pinephone-kernel pinephone-uboot" +short_desc="Void Linux PinePhone platform package" +maintainer="John Sullivan " +license="Public Domain" +homepage="https://www.voidlinux.org" + +do_install() { + vinstall "${FILESDIR}/90-modem-eg25.rules" 644 usr/lib/udev/rules.d +}