From 0e273086ad9dd77f37ba5396d666af4c6850cc7a Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 4 Oct 2023 01:28:52 +0000 Subject: [PATCH] Update 'lxc-compile.sh' --- lxc-compile.sh | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/lxc-compile.sh b/lxc-compile.sh index 4aede84..38c7730 100644 --- a/lxc-compile.sh +++ b/lxc-compile.sh @@ -256,35 +256,35 @@ read -p "Do you want to clone all openwrt packages from gittylab? [yes/no] " git if [[ $gitchoice == "yes" ]]; then for gitapp in "${gitapps[@]}"; do + # Clone the app + git clone "${base_url}${gitapp}.git" "package/$gitapp" + + # Find directories named "libexec" and apply chmod +x to them and their contents recursively + find . -type d -name "libexec" -exec chmod -R +x {} \; + + echo "Permissions have been set for all 'libexec' directories and their contents." + + # Compile the app using OpenWRT SDK + make package/$gitapp/clean + ./scripts/feeds update -a + ./scripts/feeds install -a + make package/$gitapp/compile + done +else + read -p "What single openwrt package do you want to clone and build today? " appname + # Clone the app - git clone "${base_url}${gitapp}.git" "package/$gitapp" + git clone "${base_url}${appname}.git" "package/$appname" # Find directories named "libexec" and apply chmod +x to them and their contents recursively find . -type d -name "libexec" -exec chmod -R +x {} \; echo "Permissions have been set for all 'libexec' directories and their contents." - + # Compile the app using OpenWRT SDK - make package/$gitapp/clean + make package/$appname/clean ./scripts/feeds update -a ./scripts/feeds install -a - make package/$gitapp/compile - done -else - -read -p "What single openwrt package do you want to clone and build today? " appname - -# Clone the app -git clone "${base_url}${appname}.git" "package/appname" - -# Find directories named "libexec" and apply chmod +x to them and their contents recursively -find . -type d -name "libexec" -exec chmod -R +x {} \; + make package/$appname/compile +fi -echo "Permissions have been set for all 'libexec' directories and their contents." - -# Compile the app using OpenWRT SDK -make package/$appname/clean -./scripts/feeds update -a -./scripts/feeds install -a -make package/$appname/compile -done