Skip to content

Commit e184b6a

Browse files
committed
use 'strings' from busy box
1 parent 554289a commit e184b6a

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,24 @@ This simple program will convince the ReMarkable Tablet to start the web interfa
1818

1919
### Type the following commands after ssh'ing into the ReMarkable Tablet
2020

21-
## Install
21+
22+
**It is recommended to install via the [toltec package manager](https://toltec-dev.org/).** Toltec will automate the binary and persist ip modification.
23+
24+
### With toltec
25+
26+
```
27+
$ opkg update
28+
$ opkg install webinterface-onboot
29+
$ opkg remove webinterface-onboot
30+
```
31+
32+
### No toltec
33+
34+
### Install
2235

2336
`$ wget https://raw.githubusercontent.com/rM-self-serve/webinterface-onboot/master/install-webint-ob.sh && bash install-webint-ob.sh && source ~/.bashrc`
2437

25-
## Remove
38+
### Remove
2639

2740
`$ wget https://raw.githubusercontent.com/rM-self-serve/webinterface-onboot/master/remove-webint-ob.sh && bash remove-webint-ob.sh`
2841

@@ -193,4 +206,4 @@ then
193206
systemctl stop "busybox-udhcpd@$1.service"
194207
ip addr change 10.11.99.1/32 dev usb0
195208
fi
196-
```
209+
```

webinterface-onboot

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,13 @@ status() {
286286
fi
287287
}
288288

289+
# use the full path for strings to force the use of busybox
289290
hack_applied() {
290-
strings "$1" | grep usb | xargs | grep -q 'usbF usb0'
291+
/usr/bin/strings "$1" | grep usb | xargs | grep -q 'usbF usb0'
291292
}
292293

293294
hack_possible() {
294-
strings "$1" | grep usb | xargs | grep -q 'usb0 usb1'
295+
/usr/bin/strings "$1" | grep usb | xargs | grep -q 'usb0 usb1'
295296
}
296297

297298
cli_hack_vers() {

0 commit comments

Comments
 (0)