Skip to content

Instantly share code, notes, and snippets.

@rfc1459
Created April 16, 2013 10:07

Revisions

  1. rfc1459 created this gist Apr 16, 2013.
    17 changes: 17 additions & 0 deletions rc.local
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/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