commit
1edf737239
@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo "Adding admin group policy to NM system service"
|
|
||||||
|
|
||||||
sed -i 's/<policy user="root">/<policy group="admin">\n\t\t\t\t<allow send_destination="org.freedesktop.NetworkManager"\/>\n\t\t\t\t<allow send_interface="org.freedesktop.NetworkManager"\/>\n\t\t\t\t<allow send_interface="org.freedesktop.NetworkManager.SecretAgent"\/>\n\t\t<\/policy>\n\t\t<policy user="root">/g' /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Adding admin group policy to NM system service"
|
||||||
|
|
||||||
|
sed -i 's/<policy user="root">/<policy group="sudo">\n\t\t\t\t<allow send_destination="org.freedesktop.NetworkManager"\/>\n\t\t\t\t<allow send_interface="org.freedesktop.NetworkManager"\/>\n\t\t\t\t<allow send_interface="org.freedesktop.NetworkManager.SecretAgent"\/>\n\t\t<\/policy>\n\t\t<policy user="root">/g' /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# make sure the phablet user is in the autopilot group
|
||||||
|
# (the user is not available when the package postinst
|
||||||
|
# adds all users of the sudo group to the autopilot one
|
||||||
|
# so we re-run the package configuration now
|
||||||
|
|
||||||
|
echo "making sure phablet user is in the autopilot group"
|
||||||
|
|
||||||
|
dpkg -l python-autopilot >/dev/null 2>&1 && dpkg-reconfigure python-autopilot
|
Loading…
Reference in new issue