correct link to download ipctool for mips32

pull/328/head
cronyx 2022-08-09 23:23:02 +03:00
parent da10336c11
commit 9a23445164
1 changed files with 8 additions and 3 deletions

View File

@ -3,6 +3,7 @@ export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root}
export TZ=$(cat /etc/TZ)
export SENSOR=$(fw_printenv -n sensor)
export ARCH=$(uname -m)
echo_c() { echo -ne "\e[1;$1m$2\e[0m"; }
@ -19,15 +20,19 @@ if [ "$PS1" ]; then
fi
fi
export EDITOR='/bin/vi'
if echo $ARCH | grep -q mips; then
export ARC='-mips32'
else
export ARC=''
fi
export EDITOR='/bin/vi'
[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
cli() { yaml-cli -i /etc/majestic.yaml $@; }
#[ -x /tmp/ipctool ] || ipctool() { [ -x /tmp/ipctool ] && /tmp/ipctool $@ || (curl -s -L -o /tmp/ipctool https://github.com/OpenIPC/ipctool/releases/download/latest/ipctool-$(uname -m) && \
[ -x /tmp/ipctool ] || ipctool() { [ -x /tmp/ipctool ] && /tmp/ipctool $@ || (curl -s -L -o /tmp/ipctool https://github.com/OpenIPC/ipctool/releases/download/latest/ipctool && \
[ -x /tmp/ipctool ] || ipctool() { [ -x /tmp/ipctool ] && /tmp/ipctool $@ || (curl -s -L -o /tmp/ipctool https://github.com/OpenIPC/ipctool/releases/download/latest/ipctool$ARC && \
chmod +x /tmp/ipctool && echo_c 35 "The ipctool installed as remote GitHub plugin" && /tmp/ipctool $@); }
majestic_changes() { diff -L "Majestic changes" -U 3 /rom/etc/majestic.yaml /etc/majestic.yaml; }