Skip to content

Commit 166b0fc

Browse files
committed
docs(openwrt): refine installation and configuration instructions
Remove redundant `chmod +x` command from binary installation. The `mv` command typically preserves execute permissions for binaries. Add explicit instruction to create the `/etc/init.d/telbot` file. This guides users more clearly before pasting the script content.
1 parent da064ac commit 166b0fc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/openwrt.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ ssh root@your-router-ip
1717
2. Move it to `/usr/bin/` and make it executable:
1818
```bash
1919
mv /tmp/telbot /usr/bin/telbot
20-
chmod +x /usr/bin/telbot
2120
```
2221

2322
## 2. Persistent Configuration
@@ -48,6 +47,11 @@ cp /root/.env /.config/telbot/.env
4847

4948
To ensure Telbot starts automatically and restarts on crashes, create a `procd` init script at `/etc/init.d/telbot`:
5049

50+
Create file /etc/init.d/telbot
51+
```bash
52+
nano /etc/init.d/telbot
53+
```
54+
5155
```bash
5256
#!/bin/sh /etc/rc.common
5357

0 commit comments

Comments
 (0)