我在rc.local 添加如下命令
#!/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.
/usr/bin/lantern
exit 0
#!/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.
/usr/bin/lantern
exit 0
并手动测试:
bash /etc/rc.local
有效
但是重启的时候感觉这条命令是无效的。
论坛里搜了一下。有的解决了,有的没解决。我也没找到适合我的解决方案。
请菊苣帮忙看一下。