mirror of https://github.com/OpenIPC/firmware.git
move cli from profile to external script (#701)
parent
fa92f2a2ae
commit
9d5ddcdfe9
|
@ -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 && \
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
extutils
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
cmd=`echo $0 | cut -d / -f 4`
|
||||
|
||||
case "${cmd}" in
|
||||
cli)
|
||||
yaml-cli -i /etc/majestic.yaml $@;
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue