From 83e58916455baeaba114cbb3f2614b59e8685fa9 Mon Sep 17 00:00:00 2001 From: nagumii Date: Wed, 12 Feb 2025 17:48:06 +0200 Subject: [PATCH] Update femto-software.sh --- .../out/rootfs_uclibc_rv1106/usr/local/bin/femto-software.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 6c342b0..3b7fcf3 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 @@ -91,7 +91,7 @@ package_menu() { 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 # 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)") + if $package_dir/$1.sh -I; then service_state=$(femto-utils.sh -C "$($package_dir/$1.sh -E)"); fi menu_list="\ $(if $package_dir/$1.sh -O | grep -q 'l' && $package_dir/$1.sh -I; then echo "Run software x"; fi) \ $(if $package_dir/$1.sh -O | grep -q 'i' && ! $package_dir/$1.sh -I; then echo "Install x"; fi) \ @@ -154,7 +154,7 @@ while true; do index=1 for file in /usr/local/bin/packages/*.sh; do filename=$(basename "$file" .sh) - [[ "$filename" == "package_template" ]] && continue # skip package_template.sh + [[ "$filename" == femto_* ]] && continue # skip filenames starting with femto_ case_block+=" \"$(/usr/local/bin/packages/"$filename".sh -N)\") package_intro \"$filename\" ;;" ((index++))