• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

deepin开机自启动

互联网 diligentman 1周前 (11-21) 5次浏览

参考:
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

喜欢 (0)