Commit 9f10c901 authored by Duncan Bayne's avatar Duncan Bayne

Clean up group membership and assignment

parent 405fff50
......@@ -4,26 +4,22 @@ set -e
{
echo
echo \# USB access for non-root users, added by freebsd-setup
echo \# USB access for wheel users, added by freebsd-setup
echo \# Thanks to http://mcuee.blogspot.com.au/2007/11/setting-up-permissions-for-usb-ports-to.html
echo \[usb_devices=20\]
echo add path \'ugen*\' mode 0660 group usb
echo add path \'da*s*\' mode 0660 group usb
echo add path \'ugen*\' mode 0660 group wheel
echo add path \'da*s*\' mode 0660 group wheel
echo
} >> /etc/devfs.rules
pw groupadd usb
pw groupmod operator -m "$USER"
pw groupmod wheel -m "$USER"
{
echo
echo \# USB access for non-root users, added by freebsd-setup
echo \# USB access for wheel users, added by freebsd-setup
echo \# Thanks to http://mcuee.blogspot.com.au/2007/11/setting-up-permissions-for-usb-ports-to.html
echo perm usb0 0660
echo own usb0 root:usb
echo own usb0 root:wheel
echo perm usb1 0660
echo own usb1 root:usb
echo own usb1 root:wheel
echo
} >> /etc/devfs.conf
......@@ -22,8 +22,6 @@ touch /boot/loader.conf
echo
} >> /boot/loader.conf
pw groupmod operator -m "$USER"
# WTF?
sudo chmod +x /usr/local/lib/virtualbox/VirtualBox
......@@ -2,8 +2,6 @@
set -e
pw groupmod operator -m "$USER"
# Not *strictly* necessary for DRM, but alongside that allows WebRTC
# to work.
pkg install -y pulseaudio
......
......@@ -2,4 +2,4 @@
set -e
sudo pw groupmod usb -M "$USER"
sudo pw groupmod operator -m "$USER"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment