mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
588cc4c904
Changes since 2.2.8: - Fix crash related to FD_SET and socket timeout handling - Fix build_absolute_url when if_indextoname() returns NULL - Add support for C23 and glibc 2.43 string function signatures - Improve poll() usage and C++ compiler compatibility Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
17 lines
356 B
Bash
17 lines
356 B
Bash
#!/bin/sh
|
|
|
|
case "$1" in
|
|
libminiupnpc)
|
|
# Verify the shared library is installed
|
|
ls /usr/lib/libminiupnpc.so.* > /dev/null
|
|
;;
|
|
miniupnpc)
|
|
# upnpc without args exits non-zero but prints usage including port
|
|
# redirection operations and the discover (-l) option
|
|
upnpc 2>&1 | grep -qi "Add port redirection\|port redirection\|upnp"
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|