$ cat /etc/rc.local
#!/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.
exit 0
Не глядя, детка...
#!/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.
exit 0
#!/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.
su user -c devmon >/home/user/devmon.log &
su user -c 'syncthing' &
exit 0
#!/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.
setupcon
renice -n -5 $(pidof X)
#hdparm -B 254 /dev/sda
#/sbin/hdparm -B254 /dev/disk/by-id/ata-ST3500418AS_6VMPJ7FH
#hdparm -B 254 /dev/sdb
#/sbin/hdparm -B254 /dev/disk/by-id/ata-WDC_WD7502AAEX-00Y9A0_WD-WCAW30432870
# /sbin/hdparm -S 6 /dev/disk/by-id/ata-WDC_WD7502AAEX-00Y9A0_WD-WCAW30432870
/usr/sbin/redns
sleep 3
/usr/sbin/ressh
exit 0