You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
294 B

#!/bin/sh
case "$1" in
php7-cgi)
php-cgi -v | grep "$2"
;;
php7-cli)
php-cli -v | grep "$2"
;;
php7-fpm)
php-fpm -v | grep "$2"
;;
php7-mod-*)
PHP_MOD="${1#php7-mod-}"
PHP_MOD="${PHP_MOD//-/_}"
opkg install php7-cli
php-cli -m | grep -i "$PHP_MOD"
;;
*)
;;
esac