move cli from profile to external script (#701)

pull/702/head
cronyx 2023-03-31 15:32:20 +03:00 committed by GitHub
parent fa92f2a2ae
commit 9d5ddcdfe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View File

@ -30,8 +30,6 @@ export EDITOR='/bin/vi'
[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
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 && \

View File

@ -0,0 +1 @@
extutils

View File

@ -0,0 +1,11 @@
#!/bin/sh
cmd=`echo $0 | cut -d / -f 4`
case "${cmd}" in
cli)
yaml-cli -i /etc/majestic.yaml $@;
;;
*)
;;
esac