Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. export LANG=en_US.UTF-8
  2. export LC_COLLATE=en_US.UTF-8
  3. export GSETTINGS_BACKEND=gconf
  4.  
  5. # run the oneshot triggers for root and first user uid
  6. UID_MIN=$(grep "^UID_MIN" /etc/login.defs | tr -s " " | cut -d " " -f2)
  7. DEVICEUSER=`getent passwd $UID_MIN | sed 's/:.*//'`
  8.  
  9. if [ -x /usr/bin/oneshot ]; then
  10. su -c "/usr/bin/oneshot --mic"
  11. su -c "/usr/bin/oneshot --mic" $DEVICEUSER
  12. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement