mirror of https://github.com/OpenIPC/firmware.git
Merge branch 'master' of github:OpenIPC/firmware
commit
0b0910866c
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue