|
|
|
@ -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
|
|
|
|
|