termux-connecting 1.1.24 → 1.1.26

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.
@@ -138,8 +138,8 @@ else
138
138
  fi
139
139
  fi
140
140
 
141
- # ─── 7. Informasi Koneksi ───
142
- title "6. Informasi Koneksi"
141
+ # ─── 6. Informasi Koneksi ───
142
+ title "5. Informasi Koneksi"
143
143
  USERNAME=$(whoami)
144
144
 
145
145
  IP=""
@@ -239,46 +239,49 @@ info "Setup selesai!"
239
239
  echo ""
240
240
 
241
241
  # ─── Opsional: Cek Permission ───
242
- if confirm "Cek permission & install Termux:API/Boot (opsional)" "n"; then
242
+ if [ "$AUTO" = "false" ] && confirm "Cek permission & fitur tambahan (WiFi SSID, storage, auto-start)" "n"; then
243
243
  echo ""
244
- title "Cek Termux:API & Permission"
244
+ title "Status Permission & Fitur"
245
245
 
246
- if command -v termux-wifi-connectioninfo >/dev/null 2>&1; then
247
- info "Termux:API package terinstall"
248
- else
249
- echo " Termux:API untuk deteksi nama WiFi"
250
- if confirm " Install termux-api package" "y"; then
251
- pkg install -y termux-api && info "termux-api terinstall"
252
- fi
253
- echo " Install juga aplikasi Termux:API dari F-Droid:"
246
+ HAS_API="no"; HAS_STORAGE="no"; HAS_BOOT="no"
247
+
248
+ command -v termux-wifi-connectioninfo >/dev/null 2>&1 && HAS_API="yes"
249
+ [ -d "$HOME/storage" ] && HAS_STORAGE="yes"
250
+ [ -f "$HOME/.termux/boot/boot-sshd" ] && HAS_BOOT="yes"
251
+
252
+ echo " ┌─────────────────────────────────────────────┐"
253
+ [ "$HAS_API" = "yes" ] && echo " │ ✅ Termux:API WiFi SSID │" \
254
+ || echo " │ ❌ Termux:API — WiFi SSID │"
255
+ [ "$HAS_STORAGE" = "yes" ] && echo " │ ✅ Storage — akses penyimpanan │" \
256
+ || echo " │ ❌ Storage — akses penyimpanan │"
257
+ [ "$HAS_BOOT" = "yes" ] && echo " │ ✅ Termux:Boot — auto-start sshd │" \
258
+ || echo " │ ❌ Termux:Boot — auto-start sshd │"
259
+ echo " └─────────────────────────────────────────────┘"
260
+ echo ""
261
+
262
+ if [ "$HAS_API" = "no" ] && confirm " Install Termux:API (WiFi SSID)" "y"; then
263
+ pkg install -y termux-api
264
+ echo " Install aplikasi Termux:API dari F-Droid:"
254
265
  echo " https://f-droid.org/packages/com.termux.api/"
255
266
  echo ""
256
267
  fi
257
268
 
258
- if [ -d "$HOME/storage" ]; then
259
- info "Storage permission sudah diatur"
260
- else
261
- echo " Storage permission — akses ke penyimpanan HP"
262
- if confirm " Jalankan termux-setup-storage" "y"; then
263
- termux-setup-storage
264
- echo " Izininkan pop-up permission Android"
265
- fi
269
+ if [ "$HAS_STORAGE" = "no" ] && confirm " Setup storage permission" "y"; then
270
+ termux-setup-storage
271
+ echo " Izininkan pop-up permission di Android"
266
272
  echo ""
267
273
  fi
268
274
 
269
- if [ -f "$HOME/.termux/boot/boot-sshd" ]; then
270
- info "Termux:Boot aktif — sshd auto-start saat HP nyala"
271
- else
272
- echo " Termux:Boot — auto-start sshd setiap HP dinyalakan"
273
- if confirm " Setup boot script" "y"; then
274
- mkdir -p "$HOME/.termux/boot"
275
- echo 'sshd' > "$HOME/.termux/boot/boot-sshd"
276
- chmod +x "$HOME/.termux/boot/boot-sshd"
277
- info "Boot script dibuat: ~/.termux/boot/boot-sshd"
278
- fi
275
+ if [ "$HAS_BOOT" = "no" ] && confirm " Setup auto-start sshd (Termux:Boot)" "y"; then
276
+ mkdir -p "$HOME/.termux/boot"
277
+ echo 'sshd' > "$HOME/.termux/boot/boot-sshd"
278
+ chmod +x "$HOME/.termux/boot/boot-sshd"
279
+ info "Boot script: ~/.termux/boot/boot-sshd"
279
280
  echo " Install aplikasi Termux:Boot dari F-Droid:"
280
281
  echo " https://f-droid.org/packages/com.termux.boot/"
281
282
  echo " Reboot HP agar sshd jalan otomatis"
282
283
  echo ""
283
284
  fi
285
+
286
+ info "Permission & fitur selesai dicek"
284
287
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-connecting",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "CLI setup Termux + koneksi SSH dari PC/Mac dengan Telegram alert",
5
5
  "bin": {
6
6
  "termux-connecting": "bin/termux-connecting",