[luci] Run a shell script
Jo-Philipp Wich
xm at subsignal.org
Sun Dec 11 13:46:31 CET 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
what about this?
btn = s:option(Button, "_btn", translate("Click this to run a script"))
function btn.write()
luci.sys.call("/usr/bin/script.sh")
end
~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk7kpiYACgkQdputYINPTPNK3wCfdtCkOMYKYvn2cBWSi5rHDe6P
/sMAnR3ZUzbsqk1fNPjm6hu4gzd48Isk
=ZDkC
-----END PGP SIGNATURE-----
More information about the luci
mailing list