termux-connecting 1.1.41 → 1.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/termux-connecting +6 -10
- package/package.json +1 -1
package/bin/termux-connecting
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/data/data/com.termux/files/usr/bin/bash
|
|
2
2
|
set -e
|
|
3
3
|
|
|
4
|
-
VERSION="1.1.
|
|
4
|
+
VERSION="1.1.41"
|
|
5
5
|
|
|
6
6
|
GREEN='\033[0;32m'; YELLOW='\033[1;33m'; RED='\033[0;31m'; CYAN='\033[0;36m'; NC='\033[0m'
|
|
7
7
|
info() { echo -e "${GREEN}[✓]${NC} $1"; }
|
|
@@ -209,9 +209,9 @@ if command -v termux-wake-lock >/dev/null; then
|
|
|
209
209
|
termux-wake-lock 2>/dev/null && info "Wake lock aktif — koneksi tetap terjaga saat layar mati"
|
|
210
210
|
fi
|
|
211
211
|
|
|
212
|
-
# notification — agar Android tidak kill Termux (
|
|
213
|
-
if command -v termux-notification >/dev/null; then
|
|
214
|
-
|
|
212
|
+
# notification — agar Android tidak kill Termux (non-blocking)
|
|
213
|
+
if command -v termux-notification >/dev/null && timeout 2 termux-notification --help >/dev/null 2>&1; then
|
|
214
|
+
termux-notification -t "Termux Connecting" -c "SSH server berjalan — port 8022" --id sshd-keepalive --ongoing >/dev/null 2>&1 &
|
|
215
215
|
fi
|
|
216
216
|
|
|
217
217
|
# battery optimization — buka setelan langsung
|
|
@@ -271,12 +271,8 @@ elif is_cgnat "$IP"; then
|
|
|
271
271
|
echo " 5. Atau cek IP manual: ip a | grep wlan"
|
|
272
272
|
elif is_wifi "$IP"; then
|
|
273
273
|
CONNECTION_OK=true
|
|
274
|
-
echo " Di PC/Mac
|
|
275
|
-
echo " npm i -g termux-connecting"
|
|
276
|
-
echo " termux-connect-pc"
|
|
277
|
-
echo ""
|
|
278
|
-
echo " Lalu isi data di atas saat diminta."
|
|
279
|
-
echo " Setelah setup, cukup: ssh ${HOST_ALIAS:-termux-a8star}"
|
|
274
|
+
echo " Di PC/Mac:"
|
|
275
|
+
echo " npm i -g termux-connecting && termux-connect-pc"
|
|
280
276
|
echo ""
|
|
281
277
|
warn "Pastikan HP dan PC terhubung ke jaringan WiFi YANG SAMA"
|
|
282
278
|
echo ""
|