webinterface-onboot
webinterface-onboot copied to clipboard
Syntax Error Issue in Version 3.18
Hello and thanks for your work!
After updating my remarkable to version 3.18 (Device Encryption Support) I get the following error in the apply-hack step:
root@reMarkable:~# /home/root/.local/bin/webinterface-onboot apply-hack -y
/home/root/.local/bin/webinterface-onboot: line 134: 0% / 1024: syntax error: operand expected (error token is "/ 1024")
So far I could not figure out the main cause for this.
Edit:
So far I did the following before the installation:
- Factory reset
- Installation of
webinterface-wifi(without any issues) - No further changes to the system applied
The issue comes from the encrypted filesystem output:
root@reMarkable:~# df /home
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/encrypted
6836972 13460 6454924 0% /home
In case the filesystem is encrpted, it should be:
df /home | tail -n1 | awk '{print $3}' (print $3 instead of print $4)
I will prepare a fix now...
PR is sent.
By applying the changes to /home/root/.local/bin/webinterface-onboot and using it with apply-hack I can confirm that the installation was successful and after a reboot of the device, everything works as expected.