Update 'lxc-compile.sh'

main
ben 1 year ago
parent 42e89cc018
commit 0e273086ad

@ -256,35 +256,35 @@ read -p "Do you want to clone all openwrt packages from gittylab? [yes/no] " git
if [[ $gitchoice == "yes" ]]; then if [[ $gitchoice == "yes" ]]; then
for gitapp in "${gitapps[@]}"; do 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 # 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 directories named "libexec" and apply chmod +x to them and their contents recursively
find . -type d -name "libexec" -exec chmod -R +x {} \; find . -type d -name "libexec" -exec chmod -R +x {} \;
echo "Permissions have been set for all 'libexec' directories and their contents." echo "Permissions have been set for all 'libexec' directories and their contents."
# Compile the app using OpenWRT SDK # Compile the app using OpenWRT SDK
make package/$gitapp/clean make package/$appname/clean
./scripts/feeds update -a ./scripts/feeds update -a
./scripts/feeds install -a ./scripts/feeds install -a
make package/$gitapp/compile make package/$appname/compile
done fi
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 {} \;
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

Loading…
Cancel
Save