fedora31设置开机自动运行脚本

用 init.d 太麻烦了好像,我也没用过,可以用 cron 任务,更快更方便

crontab -e 然后加入一行

@reboot /bin/bash /path/script.sh

如上。@reboot 即是开启启动