Clicky

Jump to content

Afisarea traficului in Bilboard


Recommended Posts

Daca folositi aplicatia Bilboard, puteti sa afisati pe ecranul stand-by consumul de date.
 
1. Se creaza fisierul urmator si ii dati ce nume doriti, extensia .sh
 



#!/bin/sh

tx=$(gconftool -g /cellui/settings/datacounter/transfer/gprs_home_tx_bytes)
rx=$(gconftool -g /cellui/settings/datacounter/transfer/gprs_home_rx_bytes)
txMB=$(($tx/1000000))
rxMB=$(($rx/1000000))
total=$((($tx+$rx)/1000000))
echo "U: $txMB MB / D: $rxMB MB / T: $total MB"

2. Se copiaza oriunde in /home/user/
 
3. In Terminal, in locul unde l-ati copiat, il schimbati permisiunile pentru a putea fi rulat
chmod 775 gprs-total.sh
sau
 
chmod a+rx gprs-total.sh
4. Tot in Terminal, il rulati pentru a vedea daca functioneaza corect
sh gprs-total.sh
Ar trebui sa afiseze pe un rand ceea ce apare pe ultima linie a scriptului, intre ghilimelele duble.
 
5. In Bilboard, adaugati linia corespunzatoare ca in figura
 
Screen_03-feb-14_15-24-56.png
 
6. Inchideti Bilboard si intrati in stand-by.
 
PICT0001.JPG
 
Sursa

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use