termux-connecting 1.1.22 → 1.1.23

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,62 @@ else
138
138
  fi
139
139
  fi
140
140
 
141
- # ─── 6. Informasi Koneksi ───
142
- title "5. Informasi Koneksi"
141
+ # ─── 6. Termux:API & Permission ───
142
+ title "5. Cek Termux:API & Permission"
143
+ HAS_API=false
144
+ HAS_STORAGE=false
145
+ HAS_BOOT=false
146
+
147
+ if command -v termux-wifi-connectioninfo >/dev/null 2>&1; then
148
+ HAS_API=true
149
+ info "Termux:API package terinstall — WiFi SSID bisa dideteksi"
150
+ else
151
+ echo " Termux:API — menampilkan nama WiFi yang digunakan"
152
+ echo " Install:"
153
+ echo " pkg install termux-api"
154
+ echo " Install aplikasi Termux:API dari F-Droid, lalu jalankan ulang"
155
+ echo ""
156
+ fi
157
+
158
+ if [ -d "$HOME/storage" ]; then
159
+ HAS_STORAGE=true
160
+ info "Storage permission sudah diatur"
161
+ else
162
+ echo " Storage — akses ke penyimpanan HP"
163
+ echo " Setup: termux-setup-storage"
164
+ echo " Lalu izinkan permission di pop-up Android"
165
+ echo ""
166
+ fi
167
+
168
+ if [ -f "$HOME/.termux/boot/boot-sshd" ] || [ -f "$HOME/.termux/boot/start-sshd" ]; then
169
+ HAS_BOOT=true
170
+ info "Termux:Boot aktif — sshd auto-start saat HP nyala"
171
+ else
172
+ echo " Termux:Boot — auto-start sshd setiap HP dinyalakan"
173
+ echo " Setup otomatis: mkdir -p ~/.termux/boot"
174
+ echo " && echo 'sshd' > ~/.termux/boot/boot-sshd"
175
+ echo " && chmod +x ~/.termux/boot/boot-sshd"
176
+ echo ""
177
+ echo " Install aplikasi Termux:Boot dari F-Droid"
178
+ echo " Reboot HP, sshd akan jalan otomatis"
179
+ echo ""
180
+ fi
181
+
182
+ if ! $HAS_API || ! $HAS_STORAGE || ! $HAS_BOOT; then
183
+ echo " ┌────────────────────────────────────────────┐"
184
+ echo " │ Instalasi via F-Droid: │"
185
+ echo " │ https://f-droid.org/packages/com.termux/ │"
186
+ if ! $HAS_API; then
187
+ echo " │ Termux:API → com.termux.api │"
188
+ fi
189
+ if ! $HAS_BOOT; then
190
+ echo " │ Termux:Boot → com.termux.boot │"
191
+ fi
192
+ echo " └────────────────────────────────────────────┘"
193
+ fi
194
+
195
+ # ─── 7. Informasi Koneksi ───
196
+ title "6. Informasi Koneksi"
143
197
  USERNAME=$(whoami)
144
198
 
145
199
  IP=""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-connecting",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "description": "CLI setup Termux + koneksi SSH dari PC/Mac dengan Telegram alert",
5
5
  "bin": {
6
6
  "termux-connecting": "bin/termux-connecting",