the stuff

rc.local 778B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. #
  3. # Copyright (c) 2016-2018 Ivan J. <parazyd@dyne.org>
  4. # See LICENSE file for copyright and license details.
  5. /bin/udevadm hwdb --update &
  6. /usr/local/lib/heads/heads-generate-passphrase
  7. /usr/local/lib/heads/heads-lkm-compile 2>&1 >/dev/null &
  8. /usr/local/lib/heads/heads-sup-compile 2>&1 >/dev/null &
  9. echo "luther heads = NOPASSWD: /usr/local/lib/heads/heads-welcome" \
  10. > /etc/sudoers.d/heads-welcome
  11. wm=openbox
  12. for i in $(cat /proc/cmdline); do
  13. [ "$i" = "awesome" ] && wm=awesome
  14. done
  15. cp /usr/local/share/heads/$wm.xinitrc /home/luther/.xinitrc
  16. cp /usr/local/share/heads/welcome-$wm.xinitrc /home/luther/Desktop/welcome.txt
  17. # Needs allowed_users=anybody in Xwrapper.config
  18. grep -q ' nox' /proc/cmdline || su -c /usr/local/lib/heads/heads-startx luther &
  19. exit 0