I think the most easiest way is wrapping a busybox in the package.

Currently we got three affected command: grep ping df. 
So do like this 


[/share/CACHEDEV1_DATA/.qpkg/LogitechMediaServer] #
PATH=/share/CACHEDEV1_DATA/.qpkg/LogitechMediaServer/:$PATH
[/share/CACHEDEV1_DATA/.qpkg/LogitechMediaServer] # cp
/bin/busybox_1.19.4  ./busybox

[/share/CACHEDEV1_DATA/.qpkg/LogitechMediaServer] # ln -s busybox grep
[/share/CACHEDEV1_DATA/.qpkg/LogitechMediaServer] # ln -s busybox df
[/share/CACHEDEV1_DATA/.qpkg/LogitechMediaServer] # ln -s busybox ping

[/share/CACHEDEV1_DATA/.qpkg/LogitechMediaServer] # cd ..

[/share/CACHEDEV1_DATA/.qpkg] # which ping
/share/CACHEDEV1_DATA/.qpkg/LogitechMediaServer/ping

[/share/CACHEDEV1_DATA/.qpkg] # hash -r
[/share/CACHEDEV1_DATA/.qpkg] # ping
BusyBox v1.19.4 (2014-01-14 05:22:16 PST) multi-call binary.

Usage: ping [OPTIONS] HOST

Send ICMP ECHO_REQUEST packets to network hosts

-4,-6           Force IP or IPv6 name resolution
-c CNT          Send only CNT pings
-s SIZE         Send SIZE data bytes in packets (default:56)
-t TTL          Set TTL
-I IFACE/IP     Use interface or IP address as source
-W SEC          Seconds to wait for the first response
(default:10)
(after all -c CNT packets are sent)
-w SEC          Seconds until ping exits (default:infinite)
(can exit earlier with -c CNT)
-q              Quiet, only displays output at start
and when finished


------------------------------------------------------------------------
dream's Profile: http://forums.slimdevices.com/member.php?userid=70004
View this thread: http://forums.slimdevices.com/showthread.php?t=108702

_______________________________________________
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to