Skip to content

Instantly share code, notes, and snippets.

@rfc1459
Created April 16, 2013 10:07
Show Gist options
  • Save rfc1459/5394813 to your computer and use it in GitHub Desktop.
Save rfc1459/5394813 to your computer and use it in GitHub Desktop.
/etc/rc.local for Dell XPS 13 Developer Edition
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo 1 > "/sys/bus/pci/devices/0000:01:00.0/remove" || true
echo 1 > "/sys/bus/pci/devices/0000:00:1c.0/rescan" || true
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment