From d8cc314662b77365ac6fdf5222462aea171602ad Mon Sep 17 00:00:00 2001 From: nagumii Date: Sat, 8 Feb 2025 04:02:06 +0200 Subject: [PATCH] License button should only show for installed packages --- .../out/rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh index 2d28b36..9bdaeab 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh @@ -88,6 +88,7 @@ package_menu() { echo "Loading package menu..." # for each line, check if it's supported by the package, display it if the current install state of the package is appropriate (example: don't display "install" if the package is already installed, don't display "stop service" for a package with no services) service_state=$(femto-utils.sh -C "$($package_dir/$1.sh -E)") + license_button="" if $package_dir/$1.sh -O | grep -q 'G' && $package_dir/$1.sh -I; then license_button="--help-button --help-label License"; fi menu_list="\ $(if $package_dir/$1.sh -O | grep -q 'l' && $package_dir/$1.sh -I; then echo "Run software x"; fi) \