Replacement for rc.local
Alex Regan
mysqlstudent at gmail.com
Sun Jan 25 00:36:13 UTC 2015
Hi,
I have a set of commands that I need to run after my fedora21 desktop
has completed booting. Should I just create a whole sysv init script in
/etc/rc.d/init.d, or is there a more updated way using systemd without
having to create a whole service around it?
The commands I want to run are:
for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 2 > $i; done
I'd like to disable the power management for USB devices, as once the
desktop goes into suspend, the USB keyboard/mouse won't wake it up. The
desktop is also blanked when accessing it through tigervnc.
root doesn't always login, or I would otherwise just put it in the bashrc.
These commands seem to fix it.
Thanks,
Alex
More information about the users
mailing list