Coder Social home page Coder Social logo

Comments (12)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
注意:
我这里实际测试,添加路由需要14秒,删除路由需要13秒…没�
��特殊需求就别用这个脚本了,实在
太抓狂了…

Original comment by [email protected] on 21 Feb 2010 at 2:18

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
好的, 按照这个增加一个android专用的生成脚本.
不过, 你这两个脚本大概可以改改. 
把第一行换成 #!/system/bin/sh
然后添加一行
alias route="/system/xbin/busybox route"
这样下边的那些命令就不用写得那么长和难看了.

Original comment by [email protected] on 21 Feb 2010 at 4:47

  • Changed state: Accepted

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
@Majority
呵呵,我测试的时候写的,很dirty :-)

Original comment by [email protected] on 21 Feb 2010 at 5:06

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
我看了一下用于生成for android脚本的python脚本。
awk和grep需要用/system/xbin/busybox grep这样的形式调用

Original comment by [email protected] on 6 Mar 2010 at 3:07

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
oh, android里的 awk和grep都不是单独命令, 而是由busybox提供的么?
那我加几个alias就可以了

Original comment by [email protected] on 6 Mar 2010 at 3:29

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
部分ROM里是单独命令,但是部分ROM里只能用busybox提供的,这�
��通用性好一点

Original comment by [email protected] on 6 Mar 2010 at 3:32

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
alias 是busybox提供的, 还是单独的??

Original comment by [email protected] on 6 Mar 2010 at 3:37

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
alias是shell 
built-in,这个是个shell都支持,倒不用担心这个问题

Original comment by [email protected] on 6 Mar 2010 at 3:41

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
我搞错了, 我记得也是shell的, 只是刚才which alias看到 
/usr/bin里竟然有一个.. 

Original comment by [email protected] on 6 Mar 2010 at 3:57

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
囧=。=

Original comment by [email protected] on 6 Mar 2010 at 4:15

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
哦对了,可以直接在脚本里用$route_net_gateway来获取连接VPN前��
�默认路由

Original comment by [email protected] on 6 Mar 2010 at 5:50

from chnroutes.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
我放了也不执行外部脚本.郁闷得很.另外在我的安卓机子上,��
�面的路由表不能执行.提示设备错误.改成我附件里面的行了.�
��的手机moto defy cm72的系统.

Original comment by [email protected] on 7 Dec 2012 at 3:01

Attachments:

from chnroutes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.