Добрый день всем.
Возник такой вопрос:
Есть 6 файлов *.sh
Как можно их добавить в авто-загрузку(что-бы открывались при reboot'е машины)?
Работаю через консоль.
Нашёл такой вариант решения проблемы:
/etc/rc.local
далее до директивы exit 0 пишем команду запуска скрипта
sh /_путь_до_скрипта_/start.sh
подойдёт ли он?
#!/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.
sh /root/vt-s/start.sh
sh /root/vt-c/start.sh
exit 0