mirror of
https://github.com/openwrt/packages.git
synced 2025-01-31 01:22:13 +00:00
2dad652446
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
24 lines
298 B
Bash
24 lines
298 B
Bash
#!/bin/sh
|
|
|
|
case "$1" in
|
|
php8-cgi)
|
|
php8-cgi -v | grep "$2"
|
|
;;
|
|
php8-cli)
|
|
php8-cli -v | grep "$2"
|
|
;;
|
|
php8-fpm)
|
|
php8-fpm -v | grep "$2"
|
|
;;
|
|
php8-mod-*)
|
|
PHP_MOD="${1#php8-mod-}"
|
|
PHP_MOD="${PHP_MOD//-/_}"
|
|
|
|
opkg install php8-cli
|
|
|
|
php8-cli -m | grep -i "$PHP_MOD"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|