Problem: unexpected operator in init.d script October 05, 2016 01:29PM |
Registered: 7 years ago Posts: 1 |
$ sudo /etc/init.d/piratebox start * Starting script piratebox Generating hosts file .... Generating dnsmasq.conf ..... Generating Environment-config for lighttpd ..... Empty tmp folder rm: I can't remove '/opt/piratebox/tmp/': is a directory Copy over directory design files /opt/piratebox/bin/json_generation.sh: 7: [: yes: unexpected operator /opt/piratebox/bin/json_generation.sh: 7: [: yes: unexpected operator Generating json configuration file: /opt/piratebox/www/piratebox_config.json /opt/piratebox/bin/json_generation.sh: 34: [: yes: unexpected operator * Probing wlan Probing interface wlx00116bc295a3 * Starting hostap... [ OK ] * Setting up wlan Bringing up wifi interface wlx00116bc295a3 Setting up wlx00116bc295a3 * Starting dnsmasq... [ OK ] * Setting up firewall rules... [ OK ] /etc/init.d/piratebox: 158: [: no: unexpected operator * Starting droopy... [ OK ] Generated HTML-Shoutbox File. CRITICAL: /opt/piratebox/share/Shared modified 4 minutes ago. Threshold set to 5 minutes. Cannot update. Generated HTML-DiskUsage File. * Starting lighttpd... [OK]
Re: Problem: unexpected operator in init.d script October 05, 2016 06:55PM |
Admin Registered: 13 years ago Posts: 4,680 |
Re: Problem: unexpected operator in init.d script September 22, 2017 07:11PM |
sudo nano /opt/piratebox/init.d/piratebox
find $ARKBOX/tmp/ -exec rm {} \;to:
find $ARKBOX/tmp/* -exec rm {} \;"
sudo nano /opt/piratebox/bin/json_generation.sh
#!/bin/shTo:
#!/bin/bash