nomodeset.sh 407 B

12345678910111213
  1. #!/bin/sh
  2. # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
  3. # ex: ts=8 sw=4 sts=4 et filetype=sh
  4. type getargbool >/dev/null 2>&1 || . /lib/dracut-lib.sh
  5. if getargbool 0 nomodeset; then
  6. for dm in lightdm sddm gdm; do
  7. if [ -e "${NEWROOT}/etc/runit/runsvdir/default/${dm}" ]; then
  8. touch "${NEWROOT}/etc/runit/runsvdir/default/${dm}/down"
  9. fi
  10. done
  11. fi