SIMPLE COMMAND-LINE INTERFACE for D-LINK SHARECENTER DNS-320

Copyleft Stefano Cudini 2012 stefano.cudini@gmail.com
requirements:
	php5-cli
recommends:
	php5-curl

some features:
	get or set p2p client state, 
	clear p2p complete list, 
	list or add url in http downloader, 
	download multiple urls from file list,
	clear complete http downloads list, 
	get temperature, 
	get or set fan mode, 
	get ups state, 
	get usb disk info,
	umount usb disk,
	get disks usage, 
	get nfs shares,
	get or set ftp state,
	shutdown and restart system
OUTPUT EXAMPLE:

$ ./pulse -d -D -T -t -a -u -p -N

DISKS:	2
 Volume_2: 69.74GB
  Free: 45.03GB
  Used: 35%
 Volume_1: 893.51GB
  Free: 172.79GB
  Used: 81%

DOWNLOADS: 1
 Download	2%	479 KBps  debian.5.0.amd64.dvd.iso

TEMPERATURE:	46°C

DATE-TIME:	18/3/2012, 0:2:48

FAN:	off

UPS:	On Line
 Battery: 100 

NFS: On
 P2P:      Volume_2/P2P	*,rw
 Volume_2: Volume_2		*,rw,recycle
 Volume_1: Volume_1		*,rw,recycle

P2P: On
 Speed:  64.2 KBps / 46.5 KBps
 Limits: -1 KBps / 20 KBps
 AutoDownload: Off
 Torrents: 7
  Download  38%   251.5MB of 661.9MB          0.0 / 1.6 KBps   #7  Elephants Dream BDRip...
  Stopped   34%   138.6MB of 407.7MB          0.0 / 0.0 KBps   #5  Kubuntu Linux.iso 64b...
  Stopped   29%      47MB of 1.45GB           0.0 / 0.0 KBps   #4  Sintel 2010 1080p Xvi...
  Stopped   15%   261.1MB of 1.7GB            0.0 / 0.0 KBps   #1  PBig Buck Bunny 720p ...
  Download  10%   153.6MB of 1.5GB   19h:4m  24.3 / 37.0 KBps  #3  Debian 6 0 i386 - CD1...
  Download  5%     24.4MB of 658.0MB  4h:3m  37.8 / 1.2 KBps   #2  Debian 6 0 i386 - CD2...
  Stopped   0%         0B of 710.0MB          0.0 / 0.0 KBps   #6  Debian 6 0 i386 - CD3...


Labs