- 论坛徽章:
- 0
|
弄好了,可能还是我自己太懒,几分钟就弄好了,我气自己懒死了,贴出来给大家看
1,cd /System/Library/StartupItems/
2,midir AddRoutes
3,cd AddRoutes
4,vi AddRoutes
- !/bin/sh
- # Set up static routing tables
- . /etc/rc.common
- StartService ()
- {
- ConsoleMessage "Adding Static Routing Tables"
- route add 192.168.0.0/16 172.16.254.254 #自己想加得路由,我想其他想启动得东西也是一样做
- }
- StopService ()
- {
- return 0
- }
- RestartService ()
- {
- return 0
- }
- RunService "$1"
复制代码
5,vi StartupParameters.plist
- {
- Description = "Add static routing tables";
- Provides = ("AddRoutes");
- Requires = ("Network");
- OrderPreference = "None";
- }
复制代码
6,chmod 755 *
完工
[ 本帖最后由 rinehart 于 2008-7-29 18:25 编辑 ] |
|