- 论坛徽章:
- 1
|
问一个NetBSD的问题,怎样切换终端?
原帖由 "littleboywj" 发表:
老兄,是 Ctrl+Alt+Fn 好不好?
另外,你上网使用 ADSL 吗?怎么配置的?
谢谢!
大家 NetBSDer 多多交流,可以吧!
在NETBSD上安装了RE-PPPOE,配置了ADSL上网也可以了,但是俺想在机器启动时能自动拨号使用了如下脚本(软件自带的):
# vi /usr/pkg/etc/rc.d/pppoe
代码:
#!/bin/sh
#
# $NetBSD: pppoe.sh,v 1.3 2003/01/23 01:35:51 simonb Exp $
#
# PROVIDE: pppoe
# REQUIRE: ipnat
test -f /etc/ppp/pppoe.conf || exit 1
CONFIG=/etc/ppp/pppoe.conf
case $1 in
start)
. /etc/ppp/pppoe.conf
ifconfig $ETH up
/usr/pkg/sbin/adsl-start
;;
stop)
/usr/pkg/sbin/adsl-stop
. /etc/ppp/pppoe.conf
ifconfig $ETH down
;;
restart)
sh $0 stop
sleep 5
sh $0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
俺把上面的这个脚本放到/etc/rc.local中但开机不能生效,如果手动执行就可以:
# vi /etc/rc.local
if [ -f /usr/pkg/etc/rc.d/pppoe ]; then
/usr/pkg/etc/rc.d/pppoe start
fi
在 /etc/rc.conf 中加上 local=YES 就行 |
|