[OpenWrt-Devel] [PATCHv2] [netifd/scripts] make netifd scripts recognize signal strings such as INT/TERM/KILL/... signal in proto_kill_command()

Bastian Bittorf 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"
TERM
root at box:~ kill -l "TERM"
15

bye, bastian
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list