[OpenWrt-Devel] [PATCHv2] [netifd/scripts] make netifd scripts recognize signal strings such as INT/TERM/KILL/... signal in proto_kill_command()
bittorf at bluebottle.com
Sat Oct 18 12:01:01 EDT 2014
* Yousong Zhou <yszhou4tech at gmail.com> [18.10.2014 17:58]:
> > + signal="$( kill -l "$signal" )"
> the quotes may not work...
they work and you should always quote a var,
unless you are really sure it is an integer...
root at box:~ kill -l "15"
root at box:~ kill -l "TERM"
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel