Move ash history from overlay to /tmp (#536)

pull/542/head
Paul Philippov 2022-11-03 04:20:06 -04:00 committed by GitHub
parent b48a3c21db
commit 41a2e5d404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ export HOME=${HOME:-/root}
export TZ=$(cat /etc/TZ)
export SENSOR=$(fw_printenv -n sensor)
export ARCH=$(uname -m)
export HISTFILE=/tmp/.ash_history
echo_c() { echo -ne "\e[1;$1m$2\e[0m"; }
@ -34,7 +35,7 @@ cli() { yaml-cli -i /etc/majestic.yaml $@; }
differ() { diff -rN "/rom$1" "$1"; }
[ -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 && \
[ -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; }