E-mail :
Mot de passe :
Se souvenir des mes identifiants
2010-03-15 01:49 | Anonymous | Connexion / Inscription
 

Fonera Tips

This article relates about Fonera's Tips and Tricks.

Services

Start CRON Daemon at startup

If you want to run CRON Daemon at startup, you can easily do it by creating a new file containing the launch of the crond program. After that, you would create a symbolic link from this file into the /etc/rc.d directory.

Follow these steps :
1.# Create the new file /etc/init.d/crond
2.$ cat > /etc/init.d/crond << EOF
3.#!/bin/sh /etc/rc.common
4. # Copyright (C) 2006 OpenWrt.org
5.
6.START=96
7.start() {
8./usr/sbin/crond -b -L /dev/null
9.}
10.EOF
11.
12.# Make a symbolic link into /etc/rc.d directory :
13.$ ln -s /etc/init.d/crond /etc/rc.d/S96crond


GPIO

LEDs


1.# Switch on light (where xx is the GPIO's number of the led) :
2.$ echo 1 > /proc/gpio/xx_out
3.
4.# Switch off light :
5.$ echo 0 > /proc/gpio/xx_out


Fonera 2.0g


|------------------------------|
| 1_out | 1 | 0 |
| Wireless | Orange | N/Orange |
|------------------------------|
| 2_out | 1 | 0 |
| Wireless | Green | N/Green |
|------------------------------|
| 4_out | 1 | 0 |
| Power | Green | N/Green |
|------------------------------|
| 7_out | 1 | 0 |
| Power | Orange | N/Orange |
|------------------------------|


cat /sys/class/leds/gpio7/trigger
echo heartbeat > /sys/class/leds/gpio7/trigger

Storage

Retrieve USB storage folder dynamically


1.# Just replace the size of your USB Key (here 498.0M)
2.$ df -h | grep 498.0M | cut -f 2 -d '%' | cut -f 2 -d ' '


Fil des commentaires
Pas de commentaire pour le moment.
Vous devez être connecté pour pouvoir laisser un commentaire sur cet article.
 
Suivez-nous! (RSS)
Aide & Support

Vous avez une question ou rencontrez un problème, consultez notre FAQ :

Foire Aux Questions (FAQ) »
Nous contacter

Vous souhaitez nous contacter ? Vous pouvez utiliser notre formulaire :

Formulaire de contact »