|
routeros是一种强大的路由软件,基于linux开发.它在启动的时候能自动认识硬件设备并驱动它.routeros使用了自己的ash这个shell,这个shell只能支持特定的命令,可是我想在其中运行linux命令就不行了.
于是我想怎样用我自己的shell去替换它默认的shell?是更改它的getty吗?或者,请高手指教!
其网站地址 :
http://www.mikrotik.com/
附启动时各脚本文件:
inittab
- id:3:initdefault:
- # System initialization.
- si::sysinit:/etc/rc.d/rc.sysinit
- # halt
- l0:0:wait:/etc/rc.d/rc.halt
- # starting
- l3:3:wait:/etc/rc.d/rc.start
- # rebooting
- l6:6:wait:/etc/rc.d/rc.reboot
- # Things to run in every runlevel.
- ud::once:/sbin/update
- # Trap CTRL-ALT-DELETE
- ca::ctrlaltdel:/sbin/shutdown -t3 -r now
- # Consoles
- 1:3:respawn:/sbin/getty 38400 tty1
- 2:3:respawn:/sbin/getty 38400 tty2
- # Serial lines
- #s1:3:respawn:/sbin/getty -L 9600 ttyS0 vt100
复制代码
rc.sysinit
|
|