diff --git a/Makefile b/Makefile index 6f4dbeb..dab9a77 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,9 @@ install: programs/sxmo_setpineled programs/sxmo_setpinebacklight programs/sxmo_s mkdir -p $(PREFIX)/etc/alsa/conf.d/ cp configs/alsa_sxmo_enable_dmix.conf $(PREFIX)/etc/alsa/conf.d/ + mkdir -p $(PREFIX)/etc/polkit-1/rules.d + cp configs/00-sxmo.rules $(PREFIX)/etc/polkit-1/rules.d/ + mkdir -p $(PREFIX)/usr/bin cp scripts/*/* $(PREFIX)/usr/bin diff --git a/configs/00-sxmo.rules b/configs/00-sxmo.rules new file mode 100644 index 0000000..c1b52dd --- /dev/null +++ b/configs/00-sxmo.rules @@ -0,0 +1,7 @@ +polkit.addRule(function(action, subject) { + if (action.id.indexOf("org.freedesktop.ModemManager1.") == 0 && + subject.isInGroup("plugdev")) { + + return polkit.Result.YES; + } +});