LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 743|回复: 0

请教:开机自动运行几条命令?

[复制链接]
发表于 2006-8-27 10:31:35 | 显示全部楼层 |阅读模式
我的操作:
#cd /etc/init.d
#vi rclocal 建立rclocal脚本
#!/bin/sh/
/usr/local/bin/wlanconfig ath0 destroy
/usr/local/bin/wlanconfig ath0 create wlandev wifi0 wlanmode ap
/sbin/ifconfig ath0 up
/sbin/iwconfig ath0 essid "dhp"
/sbin/ifconfig ath0 192.168.1.1 netmask 255.255.255.0
保存退出
建立一个符号链接:
ln -s /etc/init.d/rclocal /etc/rc2.d/S95rclocal
开机重启,发现这些命令并没有运行.

请大家看看,给点建议,thx a lot
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表