====== OpenWRT ======
===== Commandes pratiques =====
==== Lister les paquets installés ====
Triés par taille, avec les dépendances (long à l'exécution) :
opkg list-installed | xargs -n1 opkg info | while read k v ; do [ "x$k" == "xPackage:" ] && p=$v; [ "x$k" == "xDepends:" ] && d=$v; [ "x$k" == "xSize:" ] && echo "$v $p ($d)"; done | sort -n
==== Se connecter sur un routeur adhérent ====
lpouzenc@lud-GB1:~$ ssh -A root@stg.chd.sx
_ _ _ _
___| |__ __| | ___| |_ __ _/ |
/ __| '_ \ / _` |_____/ __| __/ _` | |
| (__| | | | (_| |_____\__ \ || (_| | |
\___|_| |_|\__,_| |___/\__\__, |_|
|___/
chd-stg1.chd.sx
Last login: Fri Apr 1 00:05:13 2016 from 172.16.11.172
chd-stg1:~# ssh root@fe80::000X:XX00%eth1
Are you sure you want to continue connecting (yes/no)? yes
BusyBox v1.23.2 (2015-07-25 15:09:46 CEST) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
CHAOS CALMER (15.05, r46767)
-----------------------------------------------------
* 1 1/2 oz Gin Shake with a glassful
* 1/4 oz Triple Sec of broken ice and pour
* 3/4 oz Lime Juice unstrained into a goblet.
* 1 1/2 oz Orange Juice
* 1 tsp. Grenadine Syrup
-----------------------------------------------------
==== Modif d'un paramètre de conf à distance sur OpenWRT ====
Par exemple : puissance à 13dBm.
ssh root@fe80::000X:XX00%eth1
uci show
uci set wireless.radio0.txpower=13
uci changes
uci commit
wifi