Commit graph

204 commits

Author SHA1 Message Date
Matthias Strubel
d9a7720425 install_piratebpx.sh : Apply feedback from shellchecker 2017-03-20 22:46:49 +01:00
Matthias Strubel
22cd996dd5 install_piratebox.sh : Remove the need to provide config file 2017-03-20 22:29:54 +01:00
Matthias Strubel
123c5b96f5 lighttpd: Only capture all redirects for non piratebox hostnames
Fixes #166
2017-03-20 22:08:38 +01:00
Matthias Strubel
9ae84a2a94 Fix Shellcheck results 2017-01-16 21:46:09 +01:00
Matthias Strubel
2bef55bae6 forest.py: Fixing install typo of css 2016-11-17 06:54:48 +01:00
Matthias Strubel
3e7ea66fb2 forest.py: Change CSS path to content folder & datapath to share 2016-10-30 14:09:55 +01:00
Matthias Strubel
6104d4731a Fix some shell incompatibilities 2016-10-05 20:53:53 +02:00
Matthias Strubel
d29df45de9 piratebox init: content symlink is not created.
If a content folder is already available, the symlink pointing to
that folder is not created. This results in an issue that
upgrades from 1.1.x to 1.1.x end up in a redirect loop in the
browser.
2016-10-05 07:37:56 +02:00
Matthias Strubel
1e3ac99110 Remove unsupported exchange_www.sh completely 2016-09-26 20:04:56 +02:00
Matthias Strubel
f0c4b4ab38 Feature: Firewall rules for non OpenWrt PirateBoxes
- Per default we now collect all DNS requests even not the
    one which addresses us directly (like 8.8.8.8 )
  - Disables is an all Port 80 catch

Fixes: #137
2016-05-12 19:45:14 +02:00
Matthias Strubel
09d04d8ff7 Better handling of content folder and more dependeing changes
-->  Design-Stuff to USB Stick #107
2016-05-10 20:09:49 +02:00
Matthias Strubel
107b3cdf65 First implementation for separate content folder, for easier customization
-->  Design-Stuff to USB Stick #107
2016-05-10 19:59:15 +02:00
Cas de Reuver
143e14d310 Droopy: block index.php uploads
Merge pull request #148 from casdr/hotfix-droopy-block-index-php
2016-04-18 06:50:58 +02:00
Lars Bartschat
a5241badea Fix #! in rpi_hwclock script 2016-02-09 22:24:57 +01:00
Lars Bartschat
36885722d3 Add rpi_hwclock shell script and service 2016-02-09 19:49:27 +01:00
Matthias Strubel
391c137709 Merge branch 'release-1.0.7' into merge-1.0.7 2016-02-07 10:52:13 +01:00
Chris Landa
59010538fa Changed parameters of wget for starting the baord 2016-01-25 22:37:30 +01:00
Chris Landa
a8fa25d9c3 Fixed some white spacing, added some comments 2016-01-24 17:57:05 +01:00
Chris Landa
c58e96ba93 Chaned wording a bit. Log the interesting bits instead of echoing them only. 2016-01-24 17:48:37 +01:00
Chris Landa
7d094a4970 Date time may have spaces in it 2016-01-24 17:41:03 +01:00
Chris Landa
0692b46a45 Sanitize date time string before comparison 2016-01-24 16:07:50 +01:00
Chris Landa
670b1bd9aa Added function to sanitize datetime 2016-01-24 16:02:28 +01:00
Chris Landa
263efa2c44 Unified intendation 2016-01-24 15:58:23 +01:00
Chris Landa
0ec6e0890d timesave format may contain spaces, so we wrap it in quotes 2016-01-24 15:48:19 +01:00
Chris Landa
8a14e818d8 Fixed trailing spaces 2016-01-24 15:47:24 +01:00
Matthias Strubel
27b8474e52 delete_empty.sh: Don't clean out root filesystem if shared folder does not exist
As OpenWrt still needs a more verbose script then a simple find command,
we need to stick at this. The script now exits if the target directory does
not exist.

Also we try to reduce the amount of files checked in the while clause with
reducing the find output to regular files only.

Closed: #133
2016-01-24 12:17:02 +01:00
Matthias Strubel
ca7aa54b05 Merge branch 'feature-release-1.1.0' into release-1.0.7
The minor 1.1.0 release is transfered into 1.0.7 release
because the changes are smaller then like adding PHP as
a feature.
As it hopefully does not break any compatibility, we are
integrating this as a small bugfix release.
2016-01-11 20:48:05 +01:00
Matthias Strubel
59ab973d02 Also remove grey background color of droopy, which looks bad on some devices 2015-10-01 18:04:49 +02:00
Matthias Strubel
8957bc67b7 Fix orientation / linebreaks of the upload box
Fixes #126
2015-10-01 17:46:52 +02:00
Matthias Strubel
17c8af22b8 Display available disk space on front page
Introduces a new python script, which displays the current usage
of the PirateBox.
The python script writes a static HTML file, which is read by
the browser in the same way like the shoutbox does. it is
rewritten on request & on PirateBox startup.

Closed #124
Closed #53

Merge branch 'miketweaver-disk_space' into feature-release-1.1.0
2015-10-01 17:13:12 +02:00
Matthias Strubel
61cf364ac1 Fix orientation / linebreaks of the upload box
Fixes #126
2015-10-01 16:50:06 +02:00
nightshade
368a9ba954 add permissions and lighttpd env 2015-09-14 18:53:35 -06:00
nightshade
4ff01b4ef6 add diskgen env variable 2015-09-14 18:02:24 -06:00
nightshade
c5c5d1cafd add diskusage autogen
This adds the autogeneration of the diskusage.html file.
2015-09-14 17:57:45 -06:00
nightshade
001a641309 Add Diskusage to Piratebox 2015-09-14 17:31:00 -06:00
Matthias Strubel
6679b04cdb Merge branch 'hotfix-1.0.5' into development
[New] Improved styling for droopy iframe.  (not applied)
    [New] Timesave script service file to run set the time during startup.
    [Fix] Droopy call in init.d/piratebox failed to use the correct port.
    [Fix] Timesave script behaviour fixed on full Linux systems. OpenWrt's date format is now customized during build & piratebox.conf .
2015-09-13 11:34:15 +02:00
Matthias Strubel
66b840714e Improved handling of timesave script on normal Linux system.
* Delivered the systemd file for restoring the file during boot.
  * Moved date format to piratebox.conf
  * Customize the date format for OpenWrt during build of
    piratebox_ws-img.tar.gz file, like other configuration files
2015-08-23 11:07:04 +02:00
Matthias Strubel
4ba0671cd3 Merge branch 'hotfix-1.0.4' into development
Implementing the changes from hotfix to development branch.

Resolved  Conflicts:
	CHANGELOG
	piratebox/piratebox/bin/board-autoconf.sh
	piratebox/piratebox/bin/droopy (now 1.0.4 version)
	piratebox/piratebox/bin/shoutbox_stuff.sh
	piratebox/piratebox/init.d/piratebox
	piratebox/piratebox/init.d/piratebox_alt
	piratebox/piratebox/www/generate_204  (stays PHP)
	piratebox/piratebox/www/index.html
2015-08-18 20:10:15 +02:00
Matthias Strubel
e5470ccd1f Cleanup unnessecary spacer files 2015-08-06 21:35:22 +02:00
Matthias Strubel
7333b8a933 Set the Timestamp of the shoutbox generated file with a delay.
The problem is, that the piratebox starts before resetting the
RTC to a saved timestamp. That means the shoubox-gen file
is from the year 1970. That breaks the refresh in the browser.

With the delay, we hopefully get a better timestamp and fix
that issue

Fixes #120
2015-08-06 21:30:18 +02:00
Matthias Strubel
4f26929bbb Remove spacer index.htm and generate first page
kareha.pl doesn't overwrite the file for itself :(

In addition, we use .htm over .html , that tricks kareha and lighttpd
in this problem.
2015-08-06 19:53:19 +02:00
Matthias Strubel
8c099f2446 Generate default page for forum link
This patch avoids a confusing directory listing. This commits copies
over a simple default index.html that provides links to the
kareha.pl and back to the main page.

Does not copy, if the board is already installed.

Closes  #117
2015-08-04 20:06:11 +02:00
Matthias Strubel
3ab58c5657 Disabling exchange_www.sh - it helped nobody, only breakes stuff. 2015-08-03 20:48:50 +02:00
Matthias Strubel
70823c1e4f This commit aligns the Droopy code back to the latest versions.
The PirateBox modifications can be found in:

   https://github.com/PirateBox-Dev/Droopy

It contains the following features from the old PirateBox version
of Droopy:

  - Secured Subdirectory (new directories will fail in styling)
  - Make it possible to launch Droopy on boot time
  - Prevent uploading index.ht* files

New features / bugfixes with the new Droopy version:

  - Multiple upload
  - Fixed language encoding
  - In general user/password setting (non configurable via
    PirateBox)

The following features were not ported to the new version:

  - Include hostname to templates (not needed anymore)
  - Field including iframe for shoutbox (not needed anymore)
  - iOS fake answer code, which was included in lighttpd since
    Piratebox 0.5.x

Known issues:

  - New folders via protected subdirectory feature are not
    created with HEADER.TXT and README.txt (styling will not work).
    That issue is also on 1.0.0-1.0.3 versions
  - HEADER.TXT and README.txt can be uploaded. It will not be
    overwritten, but break styling if the files aren't available.
2015-07-30 21:54:43 +02:00
Matthias Strubel
44c9071215 Fixes a typo , finalizes Backport #118 2015-07-27 19:26:36 +02:00
Matthias Strubel
804627901e Feature: board-autoconf.sh for OpenWrt available
Made the board un-useable, if it is not setup.

 Conflicts:
	CHANGELOG
2015-07-27 19:24:55 +02:00
Matthias Strubel
5e98cacd5c Fixes a typo 2015-03-09 19:04:32 +01:00
Matthias Strubel
00e220ae2a Fixes in hosts generation 2015-02-09 15:26:59 +01:00
Matthias Strubel
3a920800b2 new envariable for the upload script 2015-01-28 11:18:19 +01:00
Matthias Strubel
d5f9ce8d60 Merge branch 'hotfix-1.0.2' into development
Conflicts:
	BuildScripts/RPi_motd.txt
	CHANGELOG
	Makefile
	README.md
	piratebox/piratebox/python_lib/broadcast.py
	piratebox/piratebox/python_lib/discover.py
	piratebox/piratebox/python_lib/messages.py
	piratebox/piratebox/python_lib/psogen.py
	piratebox/piratebox/www/cgi-bin/psowrte.py
2014-12-26 09:56:47 +01:00