termux-connecting 1.1.22 → 1.1.24

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
- # ─── 6. Informasi Koneksi ───
142
- title "5. Informasi Koneksi"
141
+ # ─── 7. Informasi Koneksi ───
142
+ title "6. Informasi Koneksi"
143
143
  USERNAME=$(whoami)
144
144
 
145
145
  IP=""
@@ -236,3 +236,49 @@ echo ""
236
236
 
237
237
  echo "----------------------------------------"
238
238
  info "Setup selesai!"
239
+ echo ""
240
+
241
+ # ─── Opsional: Cek Permission ───
242
+ if confirm "Cek permission & install Termux:API/Boot (opsional)" "n"; then
243
+ echo ""
244
+ title "Cek Termux:API & Permission"
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:"
254
+ echo " https://f-droid.org/packages/com.termux.api/"
255
+ echo ""
256
+ fi
257
+
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
266
+ echo ""
267
+ fi
268
+
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
279
+ echo " Install aplikasi Termux:Boot dari F-Droid:"
280
+ echo " https://f-droid.org/packages/com.termux.boot/"
281
+ echo " Reboot HP agar sshd jalan otomatis"
282
+ echo ""
283
+ fi
284
+ fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-connecting",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "description": "CLI setup Termux + koneksi SSH dari PC/Mac dengan Telegram alert",
5
5
  "bin": {
6
6
  "termux-connecting": "bin/termux-connecting",