termux-connecting 1.1.37 → 1.1.39
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 +2 -2
- package/package.json +1 -1
package/bin/termux-connecting
CHANGED
|
@@ -200,7 +200,7 @@ fi
|
|
|
200
200
|
|
|
201
201
|
# wake lock — cegah Termux dimatikan saat layar mati
|
|
202
202
|
if command -v termux-wake-lock >/dev/null; then
|
|
203
|
-
termux-wake-lock
|
|
203
|
+
termux-wake-lock 2>/dev/null && info "Wake lock aktif — koneksi tetap terjaga saat layar mati"
|
|
204
204
|
fi
|
|
205
205
|
|
|
206
206
|
# notification — agar Android tidak kill Termux
|
|
@@ -345,7 +345,7 @@ if [ "$AUTO" = "false" ]; then
|
|
|
345
345
|
if [ "$HAS_STORAGE" = "no" ] && confirm " Setup storage permission" "y"; then termux-setup-storage; echo " Izininkan pop-up permission di Android"; echo ""; fi
|
|
346
346
|
if [ "$HAS_WAKE" = "no" ] && confirm " Install wake lock (termux-api)" "y"; then pkg install -y termux-api; echo " Install aplikasi Termux:API dari F-Droid:"; echo " https://f-droid.org/packages/com.termux.api/"; echo ""; fi
|
|
347
347
|
if [ "$HAS_BOOT" = "no" ] && confirm " Setup auto-start sshd (Termux:Boot)" "y"; then mkdir -p "$HOME/.termux/boot"; echo 'sshd' > "$HOME/.termux/boot/boot-sshd"; chmod +x "$HOME/.termux/boot/boot-sshd"; info "Boot script: ~/.termux/boot/boot-sshd"; echo " https://f-droid.org/packages/com.termux.boot/"; echo " Reboot HP agar sshd jalan otomatis"; echo ""; fi
|
|
348
|
-
[ "$HAS_WAKE" = "yes" ] && termux-wake-lock
|
|
348
|
+
[ "$HAS_WAKE" = "yes" ] && termux-wake-lock 2>/dev/null && info "Wake lock aktif"
|
|
349
349
|
;;
|
|
350
350
|
*) break ;;
|
|
351
351
|
esac
|