mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Refine /usr/bin/iiab-remoteit-off + explanations
This commit is contained in:
parent
bd2ff84ccb
commit
fa3cb5e42b
3 changed files with 7 additions and 4 deletions
|
@ -42,7 +42,7 @@
|
|||
dest: /usr/bin
|
||||
mode: 0755
|
||||
|
||||
- name: "Install /usr/bin/iiab-remoteit-off from template -- so IIAB operators can quickly disable remote.it services on this IIAB"
|
||||
- name: "Install /usr/bin/iiab-remoteit-off from template -- so IIAB operators can quickly turn off AND disable remote.it services on this IIAB"
|
||||
template:
|
||||
src: iiab-remoteit-off
|
||||
dest: /usr/bin
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
# Run 'sudo iiab-remoteit' to enable remote.it AND get a new claim code. Also
|
||||
# lets you download+install the latest Device Package to IIAB. GENERAL TIPS:
|
||||
# lets you download + install the latest Device Package to IIAB. GENERAL TIPS:
|
||||
# http://FAQ.IIAB.IO -> "How can I remotely manage my Internet-in-a-Box?"
|
||||
|
||||
# 'remoteit' Device Package AND /usr/bin/remoteit CLI already installed by:
|
||||
|
|
|
@ -14,6 +14,9 @@ else
|
|||
echo "remoteit_enabled: False" >> /etc/iiab/local_vars.yml
|
||||
fi
|
||||
|
||||
# 3 sections below should be equivalent to -- and much faster than:
|
||||
# https://github.com/iiab/iiab/tree/master/roles/remoteit/tasks/enable-or-disable.yml
|
||||
|
||||
# remote.it "parent" service
|
||||
systemctl stop connectd
|
||||
systemctl disable connectd
|
||||
|
@ -23,7 +26,7 @@ systemctl stop schannel
|
|||
systemctl disable schannel
|
||||
|
||||
# "Remote tcp connection service"
|
||||
systemctl stop $(ls /etc/systemd/system/multi-user.target.wants/ | grep remoteit@)
|
||||
systemctl disable $(ls /etc/systemd/system/multi-user.target.wants/ | grep remoteit@)
|
||||
systemctl stop $(ls /etc/systemd/system/multi-user.target.wants/ | grep remoteit@) || true
|
||||
systemctl disable $(ls /etc/systemd/system/multi-user.target.wants/ | grep remoteit@) || true
|
||||
# Its systemd service name (e.g. remoteit@80:00:01:7F:7E:00:56:36.service)
|
||||
# changes when a new claim code is generated!
|
||||
|
|
Loading…
Add table
Reference in a new issue