|
|
今天升级了portage,一齐顺利,后来重启系统,联结网络时,用命令
#pppoe-start
显示没有/bin/id文件的错误信息.打开 /usr/sbin/pppoe-start文件(shell脚本文件),
# Must be root
if [ "`/bin/id -u`" != 0 ] ; then
$ECHO "$ME: You must be root to run this script" >& 2
exit 1
fi
这一段是判断是否是root用户,如果是,返回0,命令路径写错了,是/usr/bin/id -u
正确的代码,即为下面:
# Must be root
if [ "`/usr/bin/id -u`" != 0 ] ; then
$ECHO "$ME: You must be root to run this script" >& 2
exit 1
fi
/usr/sbin/pppoe-start,
/usr/sbin/pppoe-setup
/usr/sbin/pppoe-stop,
/usr/sbin/pppoe-connect
等文件都需要修改,才能启动pppoe. |
|