写好shell脚本后,怎么让他在操作系统启动时就运行起来?
发表于 : 2007-05-19 17:48
我使用VirtualBox虚拟机,需要配置虚拟机的网卡设置,如下(需root权限):
tunctl -t vb01 -u xuhl
brctl addbr br0
ifconfig br0 10.0.0.1 netmask 255.255.255.0
route add -net 10.0.0.0/24 dev br0
brctl addif br0 vb01
ifconfig vb01 up
chmod 0666 /dev/net/tun
我想让这些命令在系统启动时就自动运行起来,该怎么配置?
tunctl -t vb01 -u xuhl
brctl addbr br0
ifconfig br0 10.0.0.1 netmask 255.255.255.0
route add -net 10.0.0.0/24 dev br0
brctl addif br0 vb01
ifconfig vb01 up
chmod 0666 /dev/net/tun
我想让这些命令在系统启动时就自动运行起来,该怎么配置?