File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
make-openwrt/openwrt-files/common-files/usr/sbin Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,13 @@ do_update_conf() {
54
54
echo -e " ${STEPS} Start updating the openfvd config files..."
55
55
56
56
# Check dependencies
57
- [[ -z " $( opkg list-installed | awk ' {print $1}' | grep -w ' ^git$' ) " ]] && opkg update && opkg install --force-reinstall git
57
+ if command -v opkg > /dev/null 2>&1 ; then
58
+ [[ -z " $( opkg list-installed | awk ' {print $1}' | grep -w ' ^git$' ) " ]] && opkg update && opkg install --force-reinstall git
59
+ elif command -v apk > /dev/null 2>&1 ; then
60
+ [[ -z " $( apk list --installed | grep ' ^git-' ) " ]] && apk update && apk add --force-overwrite --allow-untrusted git
61
+ else
62
+ error_msg " Package manager not found, please install git manually."
63
+ fi
58
64
59
65
# Get the latest scripts
60
66
git_tmp_path=" $( mktemp -d) "
You can’t perform that action at this time.
0 commit comments