deepin开机自启动

允我心安 提交于 2020-11-22 00:34:27

参考:
https://www.e-learn.cn/topic/3245124 设置route. https://www.lolimay.cn/2018/10/14/autostart-in-deepin/ 第二种rc.local的办法进行自启动。

route、sslocal都成功了。

#!/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.

route del -net default netmask 0.0.0.0 dev eno1
route del -net default netmask 0.0.0.0 dev enp5s0
/usr/bin/sslocal -c /etc/shadowsocks/config.json

exit 0
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!