deepin开机自启动

语言: CN / TW / HK

参考:
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
分享到: