页面

网页浏览总次数

2011年5月1日星期日

人工干预fcron on N900 如何快速手动打开蜂窝网络?

fcron is standard Linux scheduler used to schedule any command at any time. So this means that it doesn't have any limits and you can schedule just about anything. It is run as daemon in the background so you don't need to worry about it. You set it up with a config file which contains schedule.


see:http://fcron.free.fr/
http://wiki.maemo.org/Fcron

有个问题,就是:比如说,设定在晚间11点关闭蜂窝网,而突然想用电话,这时候好像需要在终端输入:这岂不是很麻烦?!

dbus-send --system --type=method_call --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.set_radio boolean:true
dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Mobile network is connected"

其实可以定义一个开关:
修改 /root/.bashrc 加一句,需要打开网络时候,只要在终端敲入networkon命令即可,是不是很简单


alias networkon='/path/.../network_on.sh'

没有评论:

发表评论