From b01574874b9db1da7e63b3690ba0188153f1e6e7 Mon Sep 17 00:00:00 2001 From: "Igor Zalatov (from Citadel PC)" Date: Tue, 4 Jan 2022 13:47:54 +0300 Subject: [PATCH] Autoinstall ipctool from GitHub now --- general/overlay/etc/profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/general/overlay/etc/profile b/general/overlay/etc/profile index 8046a317..2b404b8f 100644 --- a/general/overlay/etc/profile +++ b/general/overlay/etc/profile @@ -20,8 +20,8 @@ export EDITOR='/bin/vi' [ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; } -ipctool_install() { curl -s -L -o /tmp/ipctool https://github.com/OpenIPC/ipctool/releases/download/latest/ipctool && \ - chmod +x /tmp/ipctool && echo -e "\n\e[1;36mipctool installed\e[0m\n\n"; } +[ -x /tmp/ipctool ] || ipctool() { [ -x /tmp/ipctool ] && /tmp/ipctool $@ || (curl -s -L -o /tmp/ipctool https://github.com/OpenIPC/ipctool/releases/download/latest/ipctool && \ + chmod +x /tmp/ipctool && echo -e "\n\e[1;35mThe ipctool installed as remote GitHub plugin\e[0m\n" && /tmp/ipctool $@); } majestic_changes() { diff -L "Majestic changes" -U 3 /rom/etc/majestic.yaml /etc/majestic.yaml; }