On 27.05.2013 14:29, yokod...@yokodzun.kiev.ua wrote:
интерфейс. А он не всегда бывает тот, который нужен. Аналогично с
up-script, как из него ловить нужный интерфейс? grep по нужному ip?
http://mpd.sourceforge.net/doc5/mpd28.html#28
Первый параметр, передаваемый скрипту:
set iface up-script script
set iface down-script script
Mpd can optionally run a user program every time one of network protocols
(IPCP/IPv6CP) at the interface is brought up or down. The up-script is called
like this:
script interface proto local-ip remote-ip authname [ dns1 server-ip ]
[ dns2 server-ip ] peer-address
If up-script exit status is not 0, mpd will kill respective protocol.
The down-script is called like this:
script interface proto local-ip remote-ip authname peer-address
--
Yuri V. Kurenkov [YVK9-RIPN,YVK11-RIPE]
Mobile: +7-928-1725845
ICQ UIN: 21666578
Skype: yuri.kurenkov