From 5f99dcdea0baa39fe51078ebf0214f472ac86848 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 5 Jun 2013 09:19:33 +0200 Subject: [PATCH 01/59] only copy over the kareha link out of the source-folder... --- piratebox/piratebox/bin/install_piratebox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index 57f7c15..8d6dc3b 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -196,7 +196,7 @@ if [ $2 = 'imageboard' ] ; then mv $PIRATEBOX_FOLDER/share/board/extras/icons $PIRATEBOX_FOLDER/share/board/ #Activate on mainpage - mv $PIRATEBOX_FOLDER/src/forum_kareha.html $WWW_FOLDER/forum.html + cp $PIRATEBOX_FOLDER/src/forum_kareha.html $WWW_FOLDER/forum.html echo "Errors in chown occurs if you are using vfat on the USB stick" echo " . don't Panic!" From 1111eebf24d052c00e61abc4f5d834fc3ed70e20 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Fri, 31 May 2013 12:28:57 +0200 Subject: [PATCH 02/59] Prevent Caching in redirect.html that only poisens browser's cache too much. --- piratebox/piratebox/www/redirect.html | 1 + 1 file changed, 1 insertion(+) diff --git a/piratebox/piratebox/www/redirect.html b/piratebox/piratebox/www/redirect.html index 699c5da..0d9c7ae 100755 --- a/piratebox/piratebox/www/redirect.html +++ b/piratebox/piratebox/www/redirect.html @@ -1,6 +1,7 @@ Redirect... + Redirect From e927261668489a5850e3feaecad308789e171482 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Sun, 2 Jun 2013 19:59:30 +0300 Subject: [PATCH 03/59] be more verbose, if init_done found during kareha install --- piratebox/piratebox/bin/install_piratebox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index 8d6dc3b..84eb583 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -166,7 +166,7 @@ if [ $2 = 'imageboard' ] ; then if [ -e $PIRATEBOX_FOLDER/share/board/init_done ] ; then - echo "init_done file Found in Kareha folder. Won't reinstall board." + echo "$PIRATEBOX_FOLDER/share/board/init_done file Found in Kareha folder. Won't reinstall board." exit 0; fi From 8f6547c9fc10ad9516c5c75d4ff403327abc4bb3 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 5 Jun 2013 09:31:49 +0200 Subject: [PATCH 04/59] differ between OpenWRT and Linux in calling unzip --- piratebox/piratebox/bin/install_piratebox.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index 84eb583..22f3148 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -184,7 +184,21 @@ if [ $2 = 'imageboard' ] ; then exit 255 fi - /usr/local/bin/unzip kareha_* + # Temporary Fix for OpenWRT and Normal notebooks. + # Currently, /usr/local/bin/ is not in PATH on OpenWRT + # so just using "unzip" will break compatibilities + # So we are going to check if that file exists, + # we call it directly. + # If not, we just try to run unzip. + # if unzip fails, we end the script now to prevent + # more inconsistencies. + if [ "$OPENWRT" = "yes" ] ; then + /usr/local/bin/unzip kareha_* + else + unzip kareha_* + fi + + mv kareha/* $PIRATEBOX_FOLDER/share/board rm -rf $PIRATEBOX_FOLDER/tmp/kareha* From 2e1c8097e9e2f4d849d1c10ee501537d43a6a1b0 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 5 Jun 2013 09:32:51 +0200 Subject: [PATCH 05/59] check unzip status --- piratebox/piratebox/bin/install_piratebox.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index 22f3148..34446a4 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -198,7 +198,10 @@ if [ $2 = 'imageboard' ] ; then unzip kareha_* fi - + if [ "$?" != "0" ] ; then + echo "Error during unzipping kareha.. exiting." + exit 255 + fi mv kareha/* $PIRATEBOX_FOLDER/share/board rm -rf $PIRATEBOX_FOLDER/tmp/kareha* From 35b194ca3d7102d60a6367bede068b93d3d12144 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 5 Jun 2013 09:43:58 +0200 Subject: [PATCH 06/59] Fix for moving extracted content --- piratebox/piratebox/bin/install_piratebox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index 34446a4..e1ba977 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -202,7 +202,7 @@ if [ $2 = 'imageboard' ] ; then echo "Error during unzipping kareha.. exiting." exit 255 fi - mv kareha/* $PIRATEBOX_FOLDER/share/board + mv kareha $PIRATEBOX_FOLDER/share/board rm -rf $PIRATEBOX_FOLDER/tmp/kareha* cd $PIRATEBOX_FOLDER/share/board From 8985e67def39a0960379d9c9bc825d9ddbae3856 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 5 Jun 2013 09:44:14 +0200 Subject: [PATCH 07/59] F-Release --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4eb0808..9ebb30e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME = piratebox-ws -VERSION = 0.6E +VERSION = 0.6F ARCH = all PB_FOLDER=piratebox PB_SRC_FOLDER=$(PB_FOLDER)/$(PB_FOLDER) From ee2d88abbae646078c91b39cfde6877fe3b15bd6 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 5 Jun 2013 09:59:52 +0200 Subject: [PATCH 08/59] more fix during installation of imageboard --- piratebox/piratebox/bin/install_piratebox.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index e1ba977..58a31fb 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -171,13 +171,14 @@ if [ $2 = 'imageboard' ] ; then fi echo " Wgetting kareha-zip file " - cd $PIRATEBOX_FOLDER/tmp - wget http://wakaba.c3.cx/releases/kareha_3.1.4.zip + cd $PIRATEBOX_FOLDER/timp + KAREHA_RELEASE=kareha_3.1.4.zip + wget http://wakaba.c3.cx/releases/$KAREHA_RELEASE if [ "$?" != "0" ] ; then echo "wget kareha failed.. you can place the current file your to $PIRATEBOX_FOLDER/tmp " fi - if [ -e $PIRATEBOX_FOLDER/tmp/kareha* ] ; then + if [ -e $PIRATEBOX_FOLDER/tmp/$KAREHA_RELEASE ] ; then echo "Kareha Zip found..." else echo "No Zip found, abort " @@ -192,12 +193,12 @@ if [ $2 = 'imageboard' ] ; then # If not, we just try to run unzip. # if unzip fails, we end the script now to prevent # more inconsistencies. + UNZIP=unzip if [ "$OPENWRT" = "yes" ] ; then - /usr/local/bin/unzip kareha_* - else - unzip kareha_* + UNZIP=/usr/local/bin/unzip fi + $UNZIP $KAREHA_RELEASE if [ "$?" != "0" ] ; then echo "Error during unzipping kareha.. exiting." exit 255 From b432108ddf969d41541befe202523d73a3999efb Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 5 Jun 2013 10:15:24 +0200 Subject: [PATCH 09/59] typo fix --- piratebox/piratebox/bin/install_piratebox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index 58a31fb..e0dea3f 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -171,7 +171,7 @@ if [ $2 = 'imageboard' ] ; then fi echo " Wgetting kareha-zip file " - cd $PIRATEBOX_FOLDER/timp + cd $PIRATEBOX_FOLDER/tmp KAREHA_RELEASE=kareha_3.1.4.zip wget http://wakaba.c3.cx/releases/$KAREHA_RELEASE if [ "$?" != "0" ] ; then From 28201d14521a1e63219bf0f1fec28d0b36cae1e1 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Fri, 7 Jun 2013 11:11:14 +0200 Subject: [PATCH 10/59] small fixes with path & wget --- piratebox/piratebox/bin/install_piratebox.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index e0dea3f..f496397 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -219,7 +219,8 @@ if [ $2 = 'imageboard' ] ; then echo "Errors in chown occurs if you are using vfat on the USB stick" echo " . don't Panic!" echo "Generating index page" - wget http://127.0.0.1/board/kareha.pl -q + cd /tmp + wget -q http://127.0.0.1/board/kareha.pl echo "finished!" echo "Now Edit your kareha settings file to change your ADMIN_PASS and SECRET : " echo " # vi $PIRATEBOX_FOLDER/www/board/config.pl " From 7462fcfbccf7ee15a022303309a11674239a8ed0 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Fri, 7 Jun 2013 11:15:12 +0200 Subject: [PATCH 11/59] small fix .. --- piratebox/piratebox/bin/install_piratebox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index f496397..fabddc6 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -203,7 +203,7 @@ if [ $2 = 'imageboard' ] ; then echo "Error during unzipping kareha.. exiting." exit 255 fi - mv kareha $PIRATEBOX_FOLDER/share/board + mv kareha/* $PIRATEBOX_FOLDER/share/board rm -rf $PIRATEBOX_FOLDER/tmp/kareha* cd $PIRATEBOX_FOLDER/share/board From 50488be6c061035433e1236aba6711b1e6ae3233 Mon Sep 17 00:00:00 2001 From: Ryan Collins Date: Mon, 10 Jun 2013 11:57:48 -0400 Subject: [PATCH 12/59] Stop lighttpd from showing hidden files in directory listing for OS X users who save to an external drive --- piratebox/piratebox/conf/lighttpd/lighttpd.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/piratebox/piratebox/conf/lighttpd/lighttpd.conf b/piratebox/piratebox/conf/lighttpd/lighttpd.conf index ae15c2c..9f828de 100644 --- a/piratebox/piratebox/conf/lighttpd/lighttpd.conf +++ b/piratebox/piratebox/conf/lighttpd/lighttpd.conf @@ -33,6 +33,7 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" , ".cgi" , ".py" ) dir-listing.encoding = "utf-8" server.dir-listing = "enable" +dir-listing.hide-dotfiles = "enable" # Disabled, maybe fixes reload problem on imageboard #compress.cache-dir = "/var/cache/lighttpd/compress/" From 7b8c852ad2643692bd57b68023b673373284fbd0 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 10 Jun 2013 19:08:04 +0200 Subject: [PATCH 13/59] Created changelog to keep track of changes in releases --- CHANGELOG | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 CHANGELOG diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..090a995 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,4 @@ +CHANGELOG + +=== v0.6G === +* Hide dot files in directory-listing which are usually hidden files From bf2d385eb67e4bd7b843b4e96b47e750cf312748 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Sun, 11 Aug 2013 16:17:13 +0200 Subject: [PATCH 14/59] Version beta1 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 09c9628..941af29 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME = piratebox-ws -VERSION = 1.0.0 +VERSION = 1.0.0_beta1 ARCH = all PB_FOLDER=piratebox PB_SRC_FOLDER=$(PB_FOLDER)/$(PB_FOLDER) From ff42872fd50b4680a46715d8776b8c7ebf5a89ed Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Sun, 11 Aug 2013 16:22:06 +0200 Subject: [PATCH 15/59] removal of service --- CHANGELOG | 3 - piratebox/piratebox/bin/piratebox.sh | 406 ------------------- piratebox/piratebox/init.d/piratebox.service | 12 - 3 files changed, 421 deletions(-) delete mode 100755 piratebox/piratebox/bin/piratebox.sh delete mode 100755 piratebox/piratebox/init.d/piratebox.service diff --git a/CHANGELOG b/CHANGELOG index a3e42d4..57f9ac4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -8,10 +8,7 @@ NOTE: This may only be a partial changelog, check github / your package manager * [New] push of systemd structure * [New] install method * [New] install dependencies - * [New] can now use restart in init * [Fixed] General cleaning - * [Removed] [Testing] Executable, we will stick to service based - === v0.6G === * [Fixed] Hide dot files in directory-listing which are usually hidden files diff --git a/piratebox/piratebox/bin/piratebox.sh b/piratebox/piratebox/bin/piratebox.sh deleted file mode 100755 index 5cb4caf..0000000 --- a/piratebox/piratebox/bin/piratebox.sh +++ /dev/null @@ -1,406 +0,0 @@ -#!/bin/bash - -#=============================================================================== -# -# FILE: piratebox.sh -# -# USAGE: systemctl piratebox start -# -# DESCRIPTION: systemd file that piratebox.service points to. The systemd -#+ alternative to init.d -# -# OPTIONS: start stop restart -# REQUIREMENTS: --- -# BUGS: --- -# NOTES: --- -# AUTHOR: Cale 'TerrorByte' Black (cablack@rams.colostate.edu) -# ORGANIZATION: -# CREATED: 02/02/2013 07:37:35 PM MST -# REVISION: 0.2.0 -#=============================================================================== - -#TODO Make ExecStop in service file kill dnsmasq, lighttpd, hostapd, droopy -#TODO Fully modular with new systemd standards -#TODO Add lock -set -o nounset # Treat unset variables as an error - -# PATH for /opt piratebox folder -PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin/:/usr/local/sbin:/opt/piratebox/bin - -PIDFILE_DROOPY=/var/run/piratebox_droopy.pid -PIDFILE_HOSTAPN=/var/run/piratebox_hostapn.pid -PIDFILE_DNSMASQ=/var/run/piratebox_dnsmasq.pid -PIDFILE_LIGHTTPD=/opt/piratebox/tmp/lighttpd.pid -PIDFILE_SHOUTBOX=/opt/piratebox/tmp/shoutbox_daemon.pid - -PIRATEBOX=/opt/piratebox -CONF=$PIRATEBOX/conf/piratebox.conf -#CONF_DROOPY=/opt/piratebox/conf/droopy.conf #not used -CONF_APN=$PIRATEBOX/conf/hostapd.conf - -#Some extra config files for dnsmasq -CONF_DNSMASQ=$PIRATEBOX/conf/dnsmasq_generated.conf - -CONF_LIGHTTPD=$PIRATEBOX/conf/lighttpd/lighttpd.conf - -export PYTHONPATH=:$PYTHONPATH:$PIRATEBOX_PYTHONPATH - -#Check for config file -if [ -f $CONF ] ; then - . $CONF -else - log_failure_msg "Configuration file not found" - exit 1 -fi - -# Do basic initialization on non-openWRT Systems, too -if [ -f $PIRATEBOX/conf/init_done ] ; then - INIT=OK -else - $PIRATEBOX/bin/hooks/hook_pre_init.sh "$CONF" - $PIRATEBOX/bin/install_piratebox.sh "$CONF" part2 - $PIRATEBOX/bin/hooks/hook_post_init.sh "$CONF" - touch $PIRATEBOX/conf/init_done -fi - -# Command Line for DNSMASQ, use extra config file generated from command above -CMD_DNSMASQ="-x $PIDFILE_DNSMASQ -C $CONF_DNSMASQ " - -# Carry out specific functions when asked to by the system -case "$1" in - start) - echo "Starting script piratebox " - echo "" - - # Generate hosts & dnsmasq file - $PIRATEBOX/bin/generate_config_files.sh "$CONF" - $PIRATEBOX/bin/hooks/hook_piratebox_start.sh "$CONF" - - echo "Empty tmp folder" - find $PIRATEBOX/tmp/ -exec rm {} \; - - if [ "$DO_IW" = "yes" ] ; then - echo " Setting up Interface (iw) " - iw $PHY_IF interface add $INTERFACE type managed - fi - - if [ "$DO_IFCONFIG" = yes ] ; then - echo "Setting up wlan" - #Setting up WLAN Interface - #TODO Why not place the few lines from piratebox_setup_wlan.sh in here? - piratebox_setup_wlan.sh $CONF start - fi - if [ $? -ne 0 ] ; then - echo "Failed setting up Interface" - else - - # Only activate - if [ "$USE_APN" = "yes" ] ; then - echo "Starting hostap... " - /usr/sbin/hostapd -- $CONF_APN & #TODO Possible to change PIDFILE of hostapd? - if [ $? -ne 0 ]; then - echo $? - fi - fi - - #BRIDGE - if [ "$DO_BRIDGE" = "yes" ] ; then - echo "Adding $INTERFACE to bridge $BRIDGE // brctl addif $BRIDGE $INTERFACE " - sleep 1 - BR_CMD="brctl addif $BRIDGE $INTERFACE" - ( $BR_CMD ; ) - if [ $? -ne 0 ]; then - echo $? - fi - fi - - if [ "$USE_DNSMASQ" = "yes" ] ; then - echo "Starting dnsmasq... " - # pidfile is written by dnsmasq - /usr/sbin/dnsmasq -- $CMD_DNSMASQ - if [ $? -ne 0 ]; then - echo $? - fi - fi - - - if [ "$DROOPY_ENABLED" = "yes" ] ; then - #Start here the PirateBox-Parts droopy i.e. - #TODO More elegant way of doing this with: find -name 'file*' -size 0 -delete - #Delete 0 Byte Files - delete_empty.sh $UPLOADFOLDER - find $UPLOADFOLDER/ -iname tmp\* -exec rm {} \; - - DROOPY_USER="" - if [ "$DROOPY_USE_USER" = "yes" ] ; then - DROOPY_USER=" -c $LIGHTTPD_USER:$LIGHTTPD_GROUP " - fi - echo "Starting droopy..." - $PIRATEBOX/bin/droopy -- -H $HOST -d $UPLOADFOLDER -c "" -m "$DROOPY_TXT" $DROOPY_USERDIR $DROOPY_PORT - echo $? - fi - - #Do shoutbox stuff - $PIRATEBOX/bin/shoutbox_stuff.sh $WWW_FOLDER $CONF - - - #Start here the lighttpd i.e. - echo "Starting lighttpd..." - /usr/sbin/lighttpd -- -f $CONF_LIGHTTPD - if [ $? -ne 0 ]; then - echo $? - fi - - #Start Global Chat daemon if needed. - if [ "$GLOBAL_CHAT" = "yes" ] ; then - echo "Starting global chat service..." - $PIRATEBOX/bin/shoutbox_daemon.sh -- $CONF - if [ $? -ne 0 ]; then - echo $? - fi - fi -fi - -$PIRATEBOX/bin/hooks/hook_piratebox_start_done.sh "$CONF" - -;; - -stop) - echo "Stopping script piratebox" - echo "" - - $PIRATEBOX/bin/hooks/hook_piratebox_stop.sh "$CONF" - - if [ "$USE_APN" = "yes" ] ; then - echo "Stopping hostapd... " - systemctl stop hostapd - if [ $? -ne 0 ]; then - echo $? - fi - fi - - if [ "$USE_DNSMASQ" = "yes" ] ; then - echo "Stopping dnsmasq..." - systemctl stop dnsmasq - if [ $? -ne 0 ]; then - echo $? - fi - fi - - #Stop Global Chat daemon - if [ "$GLOBAL_CHAT" = "yes" ] ; then - echo "Stopping global chat service..." - kill $PIDFILE_SHOUTBOX #TODO better way? - if [ $? -ne 0 ]; then - echo $? - fi - fi - - echo "Stopping lighttpd..." - systemctl stop lighttpd - if [ $? -ne 0 ]; then - echo $? - fi - - if [ "$DROOPY_ENABLED" = "yes" ] ; then - #Kill Droopy - echo "Stopping droopy... " - pkill -9 -f python /opt/piratebox/bin/droopy - if [ $? -ne 0 ]; then - echo $? - fi - fi - - if [ "$DO_IFCONFIG" = yes ] ; then - piratebox_setup_wlan.sh $CONF stop - fi - - if [ "$DO_IW" = "yes" ] ; then - iw dev $INTERFACE del - fi - - # REMOVE BRIDGE - if [ "$DO_BRIDGE" = "yes" ] ; then - echo "Remove Bridge..." - BR_CMD="brctl delif $BRIDGE $INTERFACE" - ( $BR_CMD ; ) - if [ $? -ne 0 ]; then - echo $? - fi - fi - -$PIRATEBOX/bin/hooks/hook_piratebox_stop_done.sh "$CONF" - - -;; - -restart) - echo "Stopping script piratebox" - echo "" - - $PIRATEBOX/bin/hooks/hook_piratebox_stop.sh "$CONF" - - if [ "$USE_APN" = "yes" ] ; then - echo "Stopping hostapd... " - systemctl stop hostapd - if [ $? -ne 0 ]; then - echo $? - fi - fi - - if [ "$USE_DNSMASQ" = "yes" ] ; then - echo "Stopping dnsmasq..." - systemctl stop dnsmasq - if [ $? -ne 0 ]; then - echo $? - fi - fi - - #Stop Global Chat daemon - if [ "$GLOBAL_CHAT" = "yes" ] ; then - echo "Stopping global chat service..." - kill $PIDFILE_SHOUTBOX #TODO better way? - if [ $? -ne 0 ]; then - echo $? - fi - fi - - echo "Stopping lighttpd..." - systemctl stop lighttpd - if [ $? -ne 0 ]; then - echo $? - fi - - if [ "$DROOPY_ENABLED" = "yes" ] ; then - #Kill Droopy - echo "Stopping droopy... " - pkill -9 -f python /opt/piratebox/bin/droopy - if [ $? -ne 0 ]; then - echo $? - fi - fi - - if [ "$DO_IFCONFIG" = yes ] ; then - piratebox_setup_wlan.sh $CONF stop - fi - - if [ "$DO_IW" = "yes" ] ; then - iw dev $INTERFACE del - fi - - # REMOVE BRIDGE - if [ "$DO_BRIDGE" = "yes" ] ; then - echo "Remove Bridge..." - BR_CMD="brctl delif $BRIDGE $INTERFACE" - ( $BR_CMD ; ) - if [ $? -ne 0 ]; then - echo $? - fi - fi - -$PIRATEBOX/bin/hooks/hook_piratebox_stop_done.sh "$CONF" - -### Now start ### - -echo "Starting script piratebox " - echo "" - - # Generate hosts & dnsmasq file - $PIRATEBOX/bin/generate_config_files.sh "$CONF" - $PIRATEBOX/bin/hooks/hook_piratebox_start.sh "$CONF" - - echo "Empty tmp folder" - find $PIRATEBOX/tmp/ -exec rm {} \; - - if [ "$DO_IW" = "yes" ] ; then - echo " Setting up Interface (iw) " - iw $PHY_IF interface add $INTERFACE type managed - fi - - if [ "$DO_IFCONFIG" = yes ] ; then - echo "Setting up wlan" - #Setting up WLAN Interface - #TODO Why not place the few lines from piratebox_setup_wlan.sh in here? - piratebox_setup_wlan.sh $CONF start - fi - if [ $? -ne 0 ] ; then - echo "Failed setting up Interface" - else - - # Only activate - if [ "$USE_APN" = "yes" ] ; then - echo "Starting hostap... " - /usr/sbin/hostapd -- $CONF_APN & #TODO Possible to change PIDFILE of hostapd? - if [ $? -ne 0 ]; then - echo $? - fi - fi - - #BRIDGE - if [ "$DO_BRIDGE" = "yes" ] ; then - echo "Adding $INTERFACE to bridge $BRIDGE // brctl addif $BRIDGE $INTERFACE " - sleep 1 - BR_CMD="brctl addif $BRIDGE $INTERFACE" - ( $BR_CMD ; ) - if [ $? -ne 0 ]; then - echo $? - fi - fi - - if [ "$USE_DNSMASQ" = "yes" ] ; then - echo "Starting dnsmasq... " - # pidfile is written by dnsmasq - /usr/sbin/dnsmasq -- $CMD_DNSMASQ - if [ $? -ne 0 ]; then - echo $? - fi - fi - - - if [ "$DROOPY_ENABLED" = "yes" ] ; then - #Start here the PirateBox-Parts droopy i.e. - #TODO More elegant way of doing this with: find -name 'file*' -size 0 -delete - #Delete 0 Byte Files - delete_empty.sh $UPLOADFOLDER - find $UPLOADFOLDER/ -iname tmp\* -exec rm {} \; - - DROOPY_USER="" - if [ "$DROOPY_USE_USER" = "yes" ] ; then - DROOPY_USER=" -c $LIGHTTPD_USER:$LIGHTTPD_GROUP " - fi - echo "Starting droopy..." - $PIRATEBOX/bin/droopy -- -H $HOST -d $UPLOADFOLDER -c "" -m "$DROOPY_TXT" $DROOPY_USERDIR $DROOPY_PORT - if [ $? -ne 0 ]; then - echo $? - fi - fi - - #Do shoutbox stuff - $PIRATEBOX/bin/shoutbox_stuff.sh $WWW_FOLDER $CONF - - - #Start here the lighttpd i.e. - echo "Starting lighttpd..." - /usr/sbin/lighttpd -- -f $CONF_LIGHTTPD - if [ $? -ne 0 ]; then - echo $? - fi - - #Start Global Chat daemon if needed. - if [ "$GLOBAL_CHAT" = "yes" ] ; then - echo "Starting global chat service..." - $PIRATEBOX/bin/shoutbox_daemon.sh -- $CONF - if [ $? -ne 0 ]; then - echo $? - fi - fi -fi - -$PIRATEBOX/bin/hooks/hook_piratebox_start_done.sh "$CONF" - -;; -*) - echo "Usage: /etc/init.d/piratebox {start|stop|restart}" - exit 1 - ;; -esac -exit 0 diff --git a/piratebox/piratebox/init.d/piratebox.service b/piratebox/piratebox/init.d/piratebox.service deleted file mode 100755 index b3accff..0000000 --- a/piratebox/piratebox/init.d/piratebox.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=PirateBox Service - -[Service] -Type=forking -ExecStart=/opt/piratebox/bin/piratebox.sh start -ExecStop=/opt/piratebox/bin/piratebox.sh stop -Restart=/opt/piratebox/bin/piratebox.sh restart -PIDFile=/var/run/piratebox.pid - -[Install] -WantedBy=multi-user.target From 119fa6f08636d9b692e6f1717c707647b7dcb24d Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Sun, 11 Aug 2013 16:28:27 +0200 Subject: [PATCH 16/59] fixed changelog .. --- CHANGELOG | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 57f9ac4..222e878 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,10 +5,10 @@ CHANGELOG NOTE: This may only be a partial changelog, check github / your package manager for more info. * Overwork into new Responsive design -* [New] push of systemd structure * [New] install method - * [New] install dependencies + * [New] install dependencies * [Fixed] General cleaning + === v0.6G === * [Fixed] Hide dot files in directory-listing which are usually hidden files From 6cba62f519df98ca0cdbfdd18264b0785913982f Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Sun, 11 Aug 2013 16:39:21 +0200 Subject: [PATCH 17/59] Documentation --- CHANGELOG | 5 ++--- README | 18 ++---------------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 222e878..3d468b4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -8,7 +8,6 @@ NOTE: This may only be a partial changelog, check github / your package manager * [New] install method * [New] install dependencies * [Fixed] General cleaning - - -=== v0.6G === * [Fixed] Hide dot files in directory-listing which are usually hidden files + + diff --git a/README b/README index 7d6a20f..85f77d2 100644 --- a/README +++ b/README @@ -51,28 +51,14 @@ PirateBox should be in most common repositories soon, but in the mean time you c ##### For alpha testing Download the package: -https://github.com/MaStr/PirateBoxScripts_Webserver/archive/master.zip +https://github.com/MaStr/PirateBoxScripts_Webserver/archive/development.zip Unzip the package: -$unzip master.zip +$unzip development.zip Run the installer in the unzipped folder: $ cd PirateBoxScripts_Webserver/piratebox $ sudo ./install.sh default #Default can be substituted with 'board' if you want an image board on your PB -Starting / Stopping PirateBox -WARNING: Some major distributions have changed from init.d to systemd which means you should use the -commands that are labeled under your distribution or what your distribution is based on. It should -also be noted that as of recently Ubuntu has systemd enabled but not set as the default init system -which means that you may have to use the systemctl commands. -Newest versions of Ubuntu, Fedora, Arch, OpenSUSE, Mageia, and Mandriva: -$ systemctl start piratebox -$ systemctl start piratebox -$ systemctl restart piratebox - -Older Ubuntu (xubuntu, lubuntu, etc), Mint, Debian, most Debian based distros: -$ service piratebox start -$ service piratebox stop -$ service piratebox restart From 958f18f8193e593117cd5defad0561ce46992ea2 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Sun, 11 Aug 2013 16:55:43 +0200 Subject: [PATCH 18/59] Fix for droopy on OpenWRT #49 --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 941af29..6c406dd 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ SRC_IMAGE_UNPACKED=image_stuff/piratebox_img MOUNT_POINT=image_stuff/image OPENWRT_FOLDER=image_stuff/openwrt OPENWRT_CONFIG_FOLDER=$(OPENWRT_FOLDER)/conf - +OPENWRT_BIN_FOLDER=$(OPENWRT_FOLDER)/bin .DEFAULT_GOAL = package @@ -26,7 +26,7 @@ $(PACKAGE): $(VERSION) tar czf $@ $(PB_FOLDER) -$(IMAGE_FILE): $(VERSION) $(SRC_IMAGE_UNPACKED) $(OPENWRT_CONFIG_FOLDER) +$(IMAGE_FILE): $(VERSION) $(SRC_IMAGE_UNPACKED) $(OPENWRT_CONFIG_FOLDER) $(OPENWRT_BIN_FOLDER) mkdir -p $(MOUNT_POINT) echo "#### Mounting image-file" sudo mount -o loop,rw,sync $(SRC_IMAGE_UNPACKED) $(MOUNT_POINT) @@ -49,6 +49,11 @@ $(OPENWRT_CONFIG_FOLDER): sed 's:192.168.77:192.168.1:g' -i $@/piratebox.conf sed 's:DROOPY_USE_USER="yes":DROOPY_USE_USER="no":' -i $@/piratebox.conf +$(OPENWRT_BIN_FOLDER): + mkdir -p $@ + cp -v $(PB_SRC_FOLDER)/bin/droopy $@ + sed "s:libc.so.6:libc.so.0:" -i $@/droopy + $(TGZ_IMAGE_FILE): tar czf $(TGZ_IMAGE_FILE) $(SRC_IMAGE_UNPACKED) From 5a5f3acce9cd7fc6a40cd273c19ee8f28778737f Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Sun, 11 Aug 2013 17:09:03 +0200 Subject: [PATCH 19/59] Generating lease-file location based on config file. Place it on OpenWRT into /tmp => memory --- CHANGELOG | 2 +- Makefile | 1 + piratebox/piratebox/bin/generate_config_files.sh | 2 +- piratebox/piratebox/conf/piratebox.conf | 4 ++++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3d468b4..182faf9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -9,5 +9,5 @@ NOTE: This may only be a partial changelog, check github / your package manager * [New] install dependencies * [Fixed] General cleaning * [Fixed] Hide dot files in directory-listing which are usually hidden files - +* [New] Moved DHCP leasefile into memory on OpenWRT system (/tmp is memory) diff --git a/Makefile b/Makefile index 6c406dd..06195f4 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ $(OPENWRT_CONFIG_FOLDER): sed 's:DNSMASQ_INTERFACE="wlan0":DNSMASQ_INTERFACE="br-lan":' -i $@/piratebox.conf sed 's:192.168.77:192.168.1:g' -i $@/piratebox.conf sed 's:DROOPY_USE_USER="yes":DROOPY_USE_USER="no":' -i $@/piratebox.conf + sed 's:LEASE_FILE_LOCATION=$PIRATEBOX_FOLDER/tmp/lease.file:LEASE_FILE_LOCATION=/tmp/lease.file:' -i $@/piratebox.conf $(OPENWRT_BIN_FOLDER): mkdir -p $@ diff --git a/piratebox/piratebox/bin/generate_config_files.sh b/piratebox/piratebox/bin/generate_config_files.sh index 94ac288..52e4aa9 100755 --- a/piratebox/piratebox/bin/generate_config_files.sh +++ b/piratebox/piratebox/bin/generate_config_files.sh @@ -45,7 +45,7 @@ set_pathnames() { DEFAULT_HOSTS=$CONFIG_PATH/hosts DEFAULT_DNSMASQ=$CONFIG_PATH/dnsmasq_default.conf RADVD_CONFIG=$CONFIG_PATH/radvd_generated.conf - LEASE_FILE=$1/tmp/leases + LEASE_FILE=$LEASE_FILE_LOCATION LIGHTTPD_ENV_CONFIG=$CONFIG_PATH/lighttpd/env } diff --git a/piratebox/piratebox/conf/piratebox.conf b/piratebox/piratebox/conf/piratebox.conf index 5d55e1a..892164b 100644 --- a/piratebox/piratebox/conf/piratebox.conf +++ b/piratebox/piratebox/conf/piratebox.conf @@ -97,6 +97,10 @@ END_LEASE=250 #Leasetime (When should the client renew it's IP) LEASE_DURATION=12h +# Where is the leasefile stored to? +LEASE_FILE_LOCATION=$PIRATEBOX_FOLDER/tmp/lease.file + + # Define the netmask NETMASK=255.255.255.0 From 1d659001a9f652737849c1823a787df990f88821 Mon Sep 17 00:00:00 2001 From: dsbrooks Date: Wed, 21 Aug 2013 14:57:53 +0900 Subject: [PATCH 20/59] Pull Request --- .../piratebox/conf/lighttpd/lighttpd.conf | 23 +- piratebox/piratebox/src/HEADER.txt | 28 ++ piratebox/piratebox/src/README.txt | 12 + piratebox/piratebox/www/index.html | 140 ++++---- piratebox/piratebox/www/jquery.min.js | 0 piratebox/piratebox/www/menu.png | Bin 0 -> 2992 bytes .../www/piratebox-logo-horizontal-white.png | Bin 8776 -> 6607 bytes piratebox/piratebox/www/scripts.js | 79 +++- piratebox/piratebox/www/style.css | 336 +++++++++++------- 9 files changed, 417 insertions(+), 201 deletions(-) create mode 100644 piratebox/piratebox/src/HEADER.txt create mode 100644 piratebox/piratebox/src/README.txt mode change 100755 => 100644 piratebox/piratebox/www/index.html mode change 100644 => 100755 piratebox/piratebox/www/jquery.min.js create mode 100644 piratebox/piratebox/www/menu.png mode change 100755 => 100644 piratebox/piratebox/www/piratebox-logo-horizontal-white.png mode change 100755 => 100644 piratebox/piratebox/www/style.css diff --git a/piratebox/piratebox/conf/lighttpd/lighttpd.conf b/piratebox/piratebox/conf/lighttpd/lighttpd.conf index ae15c2c..5cb8a1f 100644 --- a/piratebox/piratebox/conf/lighttpd/lighttpd.conf +++ b/piratebox/piratebox/conf/lighttpd/lighttpd.conf @@ -31,8 +31,27 @@ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" , ".cgi" , ".py" ) #include_shell "/usr/share/lighttpd/use-ipv6.pl" -dir-listing.encoding = "utf-8" -server.dir-listing = "enable" +dir-listing.encoding = "utf-8" +server.dir-listing = "enable" + +# Grabs main css +dir-listing.external-css = "../style.css" + +# Header +# Enables header section +dir-listing.show-header = "enable" +dir-listing.encode-header = "disable" +# Hides HEADER.txt from listing +dir-listing.hide-header-file = "enable" + +# Footer +# Enables footer section +dir-listing.show-readme = "enable" +dir-listing.encode-readme = "disable" +# Hides README.txt from listing +dir-listing.hide-readme-file = "enable" +# Diables default footer text +dir-listing.set-footer = " " # Disabled, maybe fixes reload problem on imageboard #compress.cache-dir = "/var/cache/lighttpd/compress/" diff --git a/piratebox/piratebox/src/HEADER.txt b/piratebox/piratebox/src/HEADER.txt new file mode 100644 index 0000000..3fe11c7 --- /dev/null +++ b/piratebox/piratebox/src/HEADER.txt @@ -0,0 +1,28 @@ + + PirateBox - Share Freely! + + + + + +
+
\ No newline at end of file diff --git a/piratebox/piratebox/src/README.txt b/piratebox/piratebox/src/README.txt new file mode 100644 index 0000000..e0700a7 --- /dev/null +++ b/piratebox/piratebox/src/README.txt @@ -0,0 +1,12 @@ + +
+
+
+
+

Back to top

+

About PirateBox

+

Inspired by pirate radio and the free culture movment, PirateBox is a self-contained mobile collaboration and file sharing device. PirateBox utilizes Free, Libre and Open Source software (FLOSS) to create mobile wireless file sharing networks where users can anonymously share images, video, audio, documents, and other digital content.

+

PirateBox is designed to be safe and secure. No logins are required and no user data is logged. The system is purposely not connected to the Internet in order to prevent tracking and preserve user privacy.

+ PirateBox is licensed under GPLv3. +
+
\ No newline at end of file diff --git a/piratebox/piratebox/www/index.html b/piratebox/piratebox/www/index.html old mode 100755 new mode 100644 index aa3cbdf..78a3cdb --- a/piratebox/piratebox/www/index.html +++ b/piratebox/piratebox/www/index.html @@ -1,89 +1,85 @@ - - PirateBox - Share Freely + PirateBox - Share Freely! - -
-
- - - + + + + +
+
-
-
- - -
-
-
-

Chat

-

100% Anonymous!

-
-
-
-
- - - -
- -
-

Choose a color:

- - | - - | - - | - - | - - -
-
-
+
+
+
+

Welcome

+

Now, first of all, there is nothing illegal or scary going on here. This is a social place where you can chat and share files with people around you, anonymously! This is an off-line network, specially designed and developed for file-sharing and chat services. Staying off the grid is a precaution to maintain your full anonymity. Please have fun, chat with people, and feel free to share any files you may like.

+ +
+ -
-
-
-

About PirateBox

-

Inspired by pirate radio and the free culture movment, PirateBox is a self-contained mobile collaboration and file sharing device. PirateBox utilizes Free, Libre and Open Source software (FLOSS) to create mobile wireless file sharing networks where users can anonymously share images, video, audio, documents, and other digital content.

-

PirateBox is designed to be safe and secure. No logins are required and no user data is logged. The system is purposely not connected to the Internet in order to prevent tracking and preserve user privacy.

-

To learn more about the project or to find out how to build your own PirateBox system, please visit http://wiki.daviddarts.com/piratebox.

- - PirateBox is licensed under GPLv3. +
+
+

Chat

+
+
+
+ + + +
+
+

Text Color:

+ + + + + +
+
+
-
+
+
+ +
+
+

Back to top

+

About PirateBox

+

Inspired by pirate radio and the free culture movment, PirateBox is a self-contained mobile collaboration and file sharing device. PirateBox utilizes Free, Libre and Open Source software (FLOSS) to create mobile wireless file sharing networks where users can anonymously share images, video, audio, documents, and other digital content.

+

PirateBox is designed to be safe and secure. No logins are required and no user data is logged. The system is purposely not connected to the Internet in order to prevent tracking and preserve user privacy.

+ PirateBox is licensed under GPLv3. +
+
+ \ No newline at end of file diff --git a/piratebox/piratebox/www/jquery.min.js b/piratebox/piratebox/www/jquery.min.js old mode 100644 new mode 100755 diff --git a/piratebox/piratebox/www/menu.png b/piratebox/piratebox/www/menu.png new file mode 100644 index 0000000000000000000000000000000000000000..63396253889f7f86d7e0272ee17395e19a567d22 GIT binary patch literal 2992 zcmV;h3s3ZkP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?v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V?=aYY62dGH2n2#Y pB6aTHLB2OSQQn;(K7GXh2LRG?91M#T%clSU002ovPDHLkV1iz6e!u_# diff --git a/piratebox/piratebox/www/scripts.js b/piratebox/piratebox/www/scripts.js index 36c70d9..c185390 100755 --- a/piratebox/piratebox/www/scripts.js +++ b/piratebox/piratebox/www/scripts.js @@ -23,6 +23,83 @@ $(document).ready(function() { }); display_shoutbox(); + + // Spin menu icon and toggle nav + $('#menu-icon').click(function() { + $(this).toggleClass('rotate'); + $('#top-nav').slideToggle(); + }); + + // Closes the mobile nav + $('#top-nav a').click(function() { + if ($('#top-nav').is(':visible') + && $('#menu-icon').is(':visible')) { + $('#top-nav').slideUp(); + $('#menu-icon').toggleClass('rotate'); + } + }); + + // Hides the welcome + $('#thanks').click(function() { + $('#welcome').slideUp(); + }); + + // Detects window size + $(window).resize(function() { + if ($('#menu-icon').is(':visible')) { + $('#top-nav').hide(); + } else { + $('#top-nav').show(); + } + }); + + + // smooth scrolling for internal links + function filterPath(string) { + return string + .replace(/^\//,'') + .replace(/(index|default).[a-zA-Z]{3,4}$/,'') + .replace(/\/$/,''); + } + var locationPath = filterPath(location.pathname); + var scrollElem = scrollableElement('html', 'body'); + + $('a[href*=#]').each(function() { + var thisPath = filterPath(this.pathname) || locationPath; + if ( locationPath == thisPath + && (location.hostname == this.hostname || !this.hostname) + && this.hash.replace(/#/,'') ) { + var $target = $(this.hash), target = this.hash; + if (target) { + var targetOffset = $target.offset().top; + $(this).click(function(event) { + event.preventDefault(); + $(scrollElem).animate({scrollTop: targetOffset}, 400, function() { + location.hash = target; + }); + }); + } + } + }); + + // use the first element that is "scrollable" + function scrollableElement(els) { + for (var i = 0, argLength = arguments.length; i 0) { + return el; + } else { + $scrollElement.scrollTop(1); + var isScrollable = $scrollElement.scrollTop()> 0; + $scrollElement.scrollTop(0); + if (isScrollable) { + return el; + } + } + } + return []; + } }); function refresh_shoutbox () { @@ -41,7 +118,7 @@ function post_shoutbox () { .success(function() { refresh_shoutbox(); }); - $('#shoutbox_message').val(''); + $('#shoutbox-input .message').val(''); } function display_shoutbox() { diff --git a/piratebox/piratebox/www/style.css b/piratebox/piratebox/www/style.css old mode 100755 new mode 100644 index 3225d79..3152012 --- a/piratebox/piratebox/www/style.css +++ b/piratebox/piratebox/www/style.css @@ -3,17 +3,15 @@ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; + margin: 0; + padding: 0; } html, body, div, object, iframe, fieldset { - margin: 0; - padding: 0; border: 0; } ol, ul { - margin: 0; - padding: 0; list-style: none; } @@ -22,7 +20,7 @@ table { border-collapse: collapse; } -header, footer, nav, section, article, hgroup, figure { +header, footer, footer, nav, section, article, hgroup, figure { display: block; } @@ -31,24 +29,19 @@ legend { } body { + color: black; + font-family: sans-serif; font-size: 100%; - font-family: sans-serif; } -h1, h2, h3, h4, h5, h6, p { - margin: 0; -} - -body { - color: #1b1d1e; - font-family: sans-serif; +h1 { font-size: 1em; - font-weight: normal; - line-height: 1.5em; + font-weight: bold; + line-height: auto; margin: 0; } -h1, h2 { +h2 { font-size: 1.3em; font-weight: bold; line-height: auto; @@ -59,18 +52,14 @@ h3 { font-size: 1em; font-weight: bold; line-height: auto; - margin: 0 0 1em; + margin: 0 0 0.25em; } p { font-size: 1em; font-weight: normal; - line-height: 1.4em; - margin: 0; -} - -p + p { - margin: 1em 0; + line-height: 1.5em; + margin: 0 0 1em; } a { @@ -78,6 +67,47 @@ a { text-decoration: none; } +a:hover { + text-decoration: underline; +} + +.current { + color: white; +} + +#top-nav a { + display: block; + font-size: 1.5em; + font-weight: normal; + line-height: 1.5em; + margin: 0; +} + +input { + font-size: .75em; +} + +label { + color: white; + font-size: .75em; +} + +footer { + color: #e7e9ea; +} + +.message date { + font-size: .625em; + color: #979ea1; +} +.message name { + font-size: .75em; + font-weight: bold; +} +.message data { + font-size: .75em; +} + .red { color: red; } @@ -94,178 +124,232 @@ a { color: #ff8040; } -html, body { - background: #e5e5e5; -} - -.container { - padding: 1em; - width: 100%; -} - -img { - width: 100%; +body { + background: #e7e9ea; } header, footer { background: #1b1d1e; } +header img, footer img { + vertical-align: bottom; +} + +#logo { + float: left; + overflow: hidden; +} + +#menu-icon { + float: right; + width: 36px; + -webkit-transition: all 0.5s ease-in-out; + -moz-transition: all 0.5s ease-in-out; + -o-transition: all 0.5s ease-in-out; + transition: all 0.5s ease-in-out; +} + +.rotate { + -webkit-transform: rotate(-90deg); + -moz-transform: rotate(-90deg); + -ms-transform: rotate(-90deg); + -o-transform: rotate(-90deg); + transform: rotate(-90deg); + -webkit-transition: all 0.5s ease-in-out; + -moz-transition: all 0.5s ease-in-out; + -o-transition: all 0.5s ease-in-out; + transition: all 0.5s ease-in-out; +} #top-nav { - width: 100%; -} -#top-nav ul { - margin: 0 auto; - text-align: center; -} -#top-nav li { - display: inline; -} -#top-nav li a { - font-size: 1.5em; - margin: 0 .5em; + clear: both; + display: none; + padding: 1em 0 0 0; } -#content .container { - padding: 1em 0; +#thanks { + float: right; } -#upload, #chat { - background: white; +#upload iframe { + border: 1px solid #979ea1; border-radius: 3px; margin: 0 0 1em; - padding: 1em; - -webkit-box-shadow: #a8a8a8 0px 3px 0px; - -moz-box-shadow: #a8a8a8 0px 3px 0px; - box-shadow: #a8a8a8 0px 3px 0px; } #shoutbox { - border: 1px solid #a8a8a8; height: 350px; overflow: auto; width: 100%; + border: 1px solid #979ea1; + border-radius: 3px; margin: 0 0 1em; - padding: 0 1em; + padding: 0.5em; +} +#shoutbox .message { + margin: 0 0 .25em 0; } -.message { - margin: 0 0 .25em; +#shoutbox-input { + margin: 0 0 1em 0; } - -date { - color: #a8a8a8; - font-size: .75em; - font-weight: 700; -} - -name { - font-weight: bold; -} - -data { - line-height: 1.2em; -} - -#shoutbox_input { - margin: 0 0 1em; -} - -#shoutbox_nickname, #shoutbox_message, #shoutbox_submit { - margin: 0 0 1em; +#shoutbox-input .nickname, +#shoutbox-input .message, +#shoutbox-input .button { width: 100%; } -footer { - color: #e5e5e5; +#shoutbox-options label { + float: left; + overflow: hidden; + border-radius: 3px; + margin: 0 0.5em 0.5em 0; + padding: 0.5em 1em; +} +#shoutbox-options label input { + margin: 0 .5em 0 0; +} +#shoutbox-options .bg-black { + background: #1b1d1e; +} +#shoutbox-options .bg-blue { + background: blue; +} +#shoutbox-options .bg-green { + background: green; +} +#shoutbox-options .bg-orange { + background: #ff8040; +} +#shoutbox-options .bg-red { + background: red; } input { - background-color: white; - border: 1px solid #a8a8a8; - color: #1b1d1e; - cursor: text; - font-size: .75em; height: 3em; - padding: 0 .5em; - vertical-align: baseline; -} - -input[type=submit] { - background: #a8a8a8; - border: none; - color: white; - padding: 0; + border: 1px solid #979ea1; + border-radius: 3px; + margin: 0 0 1em; + padding: 0 0.5em; } input[type=radio] { height: 1.3em; - margin: 0 .2em; + margin: 0 .5em 0 0; } -@media screen and (min-width: 769px) { +.button { + background: #979ea1; + border: 0; + color: white; + margin: 0; + padding: 1em; +} + +.button:active { + background: #7c8589; + color: #cccccc; + -webkit-box-shadow: #4b5154 0px -3px 0px inset; + -moz-box-shadow: #4b5154 0px -3px 0px inset; + box-shadow: #4b5154 0px -3px 0px inset; +} + +.card { + background: white; + border-radius: 3px; + -webkit-box-shadow: #979ea1 0px 3px 0px; + -moz-box-shadow: #979ea1 0px 3px 0px; + box-shadow: #979ea1 0px 3px 0px; + margin: 0 0 1em; + padding: 1em; +} + +.container { + height: 100%; + padding: 1em; + width: 100%; +} + +.list table { + width: 100%; +} +.list table thead { + text-align: left; +} +.list table tbody tr { + height: 2em; + vertical-align: middle; +} +.list table tbody tr:hover { + background: #e7e9ea; +} +.list table .m, .list table .s, .list table .t { + display: none; +} + +@media screen and (min-width: 801px) { #logo { - float: left; - margin: 0; - width: 60%; + margin: 0 2em 0 0; } - #logo img { - width: 80%; + #menu-icon { + display: none; } #top-nav { - float: right; - margin: 1em 0; - width: 40%; + clear: none; + display: table-cell; + padding: 0; + vertical-align: middle; } - #top-nav ul { - text-align: left; + #top-nav ul li { + float: left; } - #top-nav li a { + #top-nav ul li a { margin: 0 1em 0 0; - } - - #content .container { - padding: 1em; + padding: 0; } #sidebar { float: right; - margin: 0 0 1em; width: 40%; } #main { float: left; + padding: 0 1em 0 0; width: 60%; } - #chat { - margin: 0 1em 1em 0; - } - - #shoutbox_nickname { + #shoutbox-input .nickname { float: left; margin: 0 1em 0 0; width: 20%; } - - #shoutbox_message { + #shoutbox-input .message { float: left; - margin: 0; + margin: 0 1em 0 0; width: 60%; } - - #shoutbox_submit { + #shoutbox-input .button { float: right; margin: 0; width: 15%; } -} -@media screen and (min-width: 1025px) { + + .to-top { + display: none; + } + .container { margin: 0 auto; - width: 80%; + max-width: 1280px; + width: 90%; + } + + .list table .m, + .list table .s, + .list table .t { + display: table-cell; } } From a29154fbb8147d14be90be4946e6687e34d36b63 Mon Sep 17 00:00:00 2001 From: dsbrooks Date: Wed, 21 Aug 2013 15:05:19 +0900 Subject: [PATCH 21/59] Quick-fix + body style needed a variable added --- piratebox/piratebox/www/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/www/style.css b/piratebox/piratebox/www/style.css index 3152012..282ff73 100644 --- a/piratebox/piratebox/www/style.css +++ b/piratebox/piratebox/www/style.css @@ -29,7 +29,7 @@ legend { } body { - color: black; + color: #1b1d1e; font-family: sans-serif; font-size: 100%; } From aa36558a1c1c58b25589126e1d2f5d98adacd6f7 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 21 Aug 2013 09:59:58 +0200 Subject: [PATCH 22/59] Distribute Files which are responsible for the new design in directory listing --- .../bin/distribute_file_into_directory.sh | 29 ++++++++++++ piratebox/piratebox/bin/distribute_files.sh | 47 +++++++++++++++++++ piratebox/piratebox/init.d/piratebox | 3 ++ piratebox/piratebox/init.d/piratebox_alt | 3 ++ 4 files changed, 82 insertions(+) create mode 100755 piratebox/piratebox/bin/distribute_file_into_directory.sh create mode 100755 piratebox/piratebox/bin/distribute_files.sh diff --git a/piratebox/piratebox/bin/distribute_file_into_directory.sh b/piratebox/piratebox/bin/distribute_file_into_directory.sh new file mode 100755 index 0000000..746b648 --- /dev/null +++ b/piratebox/piratebox/bin/distribute_file_into_directory.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# The following script is used to distribute a specific file into directoried of the givien folder + +directory=$1 +src_file=$2 +overwrite=$3 +overwrite=${overwrite:=false} + +# To enable DEBUG mode, run the following line before startint this script +# export DEBUG=true +DEBUG=${DEBUG:=false} + +TEST_RUN=false + +filename="${src_file##*/}" + + $DEBUG && echo "filename: $filename" + $DEBUG && echo "Overwrite mode : $overwrite " + +if [ ! -e $directory/$filename ] || [ "$overwrite" == "true" ] ; then + echo "Distribute $filename into $directory " + $DEBUG && echo " cp $src_file $directory " + $TEST_RUN || cp $src_file $directory +else + $DEBUG && echo "File exists" +fi + + diff --git a/piratebox/piratebox/bin/distribute_files.sh b/piratebox/piratebox/bin/distribute_files.sh new file mode 100755 index 0000000..a43846f --- /dev/null +++ b/piratebox/piratebox/bin/distribute_files.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +# This script distributes a set of files into $1 folder + +#Script for single stuff +PIRATEBOX_FOLDER=${4:=/opt/piratebox} +script=$PIRATEBOX_FOLDER/bin/distribute_file_into_directory.sh + + +# To enable DEBUG mode, run the following line before startint this script +# export DEBUG=true +DEBUG=${DEBUG:=false} + +work_on_file() { + local destination_root_folder=$1 + local src_file=$2 + + find $destination_root_folder -type d -exec $script "{}" $src_file $overwrite ';' + +} + + + +#------------- + +destination=$1 +overwrite=$2 +overwrite=${overwrite:=false} +src_file=$3 +src_file=${src_file:=all} + +$DEBUG && echo "parameters: + destination $destination + overwrite $overwrite + src_file $src_file + PirateBox_folder=$PIRATEBOX_FOLDER + call script: $script + "; + +if [ "$src_file" == "all" ] ; then + work_on_file $destination $PIRATEBOX_FOLDER/src/HEADER.txt + work_on_file $destination $PIRATEBOX_FOLDER/src/README.txt +else + work_on_file $destination $src_file +fi + + diff --git a/piratebox/piratebox/init.d/piratebox b/piratebox/piratebox/init.d/piratebox index 34b494d..6f98dfb 100755 --- a/piratebox/piratebox/init.d/piratebox +++ b/piratebox/piratebox/init.d/piratebox @@ -70,6 +70,9 @@ case "$1" in echo "Empty tmp folder" find $PIRATEBOX/tmp/ -exec rm {} \; + echo "Copy over design files" + $PIRATEBOX/bin/distribute_files.sh $SHARE_FOLDER/Shared + if [ "$DO_IW" = "yes" ] ; then log_daemon_msg " Setting up Interface (iw) " iw $PHY_IF interface add $INTERFACE type managed diff --git a/piratebox/piratebox/init.d/piratebox_alt b/piratebox/piratebox/init.d/piratebox_alt index 427a969..c128f98 100755 --- a/piratebox/piratebox/init.d/piratebox_alt +++ b/piratebox/piratebox/init.d/piratebox_alt @@ -74,6 +74,9 @@ case "$1" in echo "Empty tmp folder" find $PIRATEBOX/tmp/ -exec rm {} \; + echo "Copy over design files" + $PIRATEBOX/bin/distribute_files.sh $SHARE_FOLDER/Shared + if [ "$DO_IW" = "yes" ] ; then From 99f4a97c3c7f9855f34388981f0dd87d788dbfcb Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 21 Aug 2013 10:08:11 +0200 Subject: [PATCH 23/59] Added new directory-Design to CHANGELOG and David Brooks to Authors --- AUTHORS | 3 +++ CHANGELOG | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/AUTHORS b/AUTHORS index 8e76041..5a69383 100644 --- a/AUTHORS +++ b/AUTHORS @@ -14,6 +14,9 @@ Contributors for modifications: # someguy - Modifications for running on OpenWRT # ToM'aSs - Languag-Support +Design: + * David Brooks + Based on Software: * Droopy - http://stackp.online.fr/?p=28 * forest.py - http://www.triv.org.uk/~nelis/forest/ diff --git a/CHANGELOG b/CHANGELOG index b1eb011..bb0c02e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,12 @@ CHANGELOG NOTE: This may only be a partial changelog, check github / your package manager for more info. * Overwork into new Responsive design + * New Frontpage + * Directory Listing in design + * Configuration in lighttpd.conf + * During startup README.txt & HEADER.txt get copied into /opt/piratebox/share/Shared folder + -> Exisiting files won't be overwritten! + -> Scripts can be used in console with overwrite parameter do distribute your own files * [New] install method * [New] install dependencies * [Fixed] General cleaning From b6555ae8479e56166465f9c87b08fac448809291 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 21 Aug 2013 10:19:20 +0200 Subject: [PATCH 24/59] Get back to PirateBox-Logo for kareha --- .../piratebox/www/piratebox-logo-small.png | Bin 0 -> 12637 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100755 piratebox/piratebox/www/piratebox-logo-small.png diff --git a/piratebox/piratebox/www/piratebox-logo-small.png b/piratebox/piratebox/www/piratebox-logo-small.png new file mode 100755 index 0000000000000000000000000000000000000000..667a5d8ddf26a14f98083f91850482bceeaae56a GIT binary patch literal 12637 zcmXw9Wmr^Q7rjFcJ#=>t-HLPxj3BLmba#jnQbRXLNq0#j2+|A~)# zrUcYaGW5`piTg%FOBHt+gA|vM zi`agt2>@6C4HZQLzoo+<|2#9pjH54?a=R-5E}DkC8g|b|BRE*`AXpJNkw;Ix6#lp) zTA7Jgmwxyt-xT!VsA7F0?ff&h-aPB0#DM;#DCRp6?^npM0u7s$dWw_;hs0{Nbbj;Y zyO4vo)js)o0X5dV@2{L6f*)mcygjD9Fb}Bn2y%Ihq4p=H1YEGoh+-m5^tS+m*kIBT z$inU0=O@0^L~Pa9m!)rGO3lFdkr;vNBdu=Bjc@+wUH1H(t9$heeHuDAR5C{uudlB+ z#0`~DV<{s23&@mM2$e;LV_vt{o?QpxDMe@{CN5nDt^WK;(c01yNp0>|OsbTSQXv#_ zJ>GWEG+u$Van6(h!!~irp0JPgZCYycvaugYVoX$4R!+PQ3^wub@bE6y$&!mHE_|}_D%UeM<;~ckvsp?I zal;aS#<~Y!DaF763ovVW`UxnKmCc6mK{-XFf=pHSV+)hy@LvMfj@XaUF&+KFE6|9A zrRnKULBk2O*8#`fj}nB+y1Nd1FTJb6-aFrB11^tb!();RVH2k^ z9yxl|eP=S-u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~{W0tK7&GCkat8iAQR!a?LC&rr-EiZ3+0~C1IpSTyFtrooj~w}#MW=7$teIFPB2h8?|G`7U@B?PE%G-g` SMg1TEeQ2mYSE*OB4ErDSeE~=S literal 0 HcmV?d00001 From 693775bcdd5408d2f0ccda31dcb5330c6882a8f0 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 21 Aug 2013 11:04:51 +0200 Subject: [PATCH 25/59] fix for OpenWRT systems --- piratebox/piratebox/bin/distribute_files.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/distribute_files.sh b/piratebox/piratebox/bin/distribute_files.sh index a43846f..20530e5 100755 --- a/piratebox/piratebox/bin/distribute_files.sh +++ b/piratebox/piratebox/bin/distribute_files.sh @@ -3,7 +3,8 @@ # This script distributes a set of files into $1 folder #Script for single stuff -PIRATEBOX_FOLDER=${4:=/opt/piratebox} +PIRATEBOX_FOLDER=$4 +PIRATEBOX_FOLDER=${PIRATEBOX_FOLDER:=/opt/piratebox} script=$PIRATEBOX_FOLDER/bin/distribute_file_into_directory.sh From a30ad81325272f8f9e388eb4957d6dd89fd88fae Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 21 Aug 2013 11:06:39 +0200 Subject: [PATCH 26/59] Release beta2 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 06195f4..6bc2223 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME = piratebox-ws -VERSION = 1.0.0_beta1 +VERSION = 1.0.0_beta2 ARCH = all PB_FOLDER=piratebox PB_SRC_FOLDER=$(PB_FOLDER)/$(PB_FOLDER) From dbc069e983bc539222b39e19914ee08b7bd09370 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Thu, 22 Aug 2013 12:53:24 +0200 Subject: [PATCH 27/59] Changes for working subdirectories with custom directory listing --- piratebox/piratebox/conf/lighttpd/lighttpd.conf | 2 +- piratebox/piratebox/src/HEADER.txt | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/piratebox/piratebox/conf/lighttpd/lighttpd.conf b/piratebox/piratebox/conf/lighttpd/lighttpd.conf index 5cb8a1f..f7dd222 100644 --- a/piratebox/piratebox/conf/lighttpd/lighttpd.conf +++ b/piratebox/piratebox/conf/lighttpd/lighttpd.conf @@ -35,7 +35,7 @@ dir-listing.encoding = "utf-8" server.dir-listing = "enable" # Grabs main css -dir-listing.external-css = "../style.css" +dir-listing.external-css = "/style.css" # Header # Enables header section diff --git a/piratebox/piratebox/src/HEADER.txt b/piratebox/piratebox/src/HEADER.txt index 3fe11c7..22c785b 100644 --- a/piratebox/piratebox/src/HEADER.txt +++ b/piratebox/piratebox/src/HEADER.txt @@ -1,7 +1,7 @@ PirateBox - Share Freely! - - + +
-
\ No newline at end of file +
From e3152c3787ef1df8ca8b85c026803ec65bbf1322 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 26 Aug 2013 08:20:55 +0200 Subject: [PATCH 28/59] Fixes issue in package generation + initialition on Debian --- piratebox/piratebox/init.d/piratebox | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/piratebox/piratebox/init.d/piratebox b/piratebox/piratebox/init.d/piratebox index 19e2bed..34fe08d 100755 --- a/piratebox/piratebox/init.d/piratebox +++ b/piratebox/piratebox/init.d/piratebox @@ -53,6 +53,19 @@ else exit 1 fi + +if [[ -f $PIRATEBOX/conf/init_done ]] ; then + INIT=OK +else + $PIRATEBOX/bin/hooks/hook_pre_init.sh "$CONF" + $PIRATEBOX/bin/install_piratebox.sh "$CONF" part2 + $PIRATEBOX/bin/hooks/hook_post_init.sh "$CONF" + touch $PIRATEBOX/conf/init_done +fi + + + + # Command Line for DNSMASQ, use extra config file generated from command above CMD_DNSMASQ="-x $PIDFILE_DNSMASQ -C $CONF_DNSMASQ " From 7b5a33284b21138665c4aeb38e9beaf317cc76a8 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 19 Aug 2013 17:13:37 +0200 Subject: [PATCH 29/59] fix for calling change hostname service --- piratebox/piratebox/bin/install_piratebox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index e0bcad7..788e6f9 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -151,7 +151,7 @@ if [ $2 = "flush_dns_reg" ] ; then echo "Installed crontab for flushing dnsmasq requlary" fi -set_Hostname() { +set_hostname() { local name=$1 ; shift; echo " From 8e55ae1b472128e45c257065f7f1451990489e4f Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 19 Aug 2013 13:26:14 +0200 Subject: [PATCH 30/59] OVERWORK of calls of "date" and better initialize of timesave file (less error messages) Conflicts: piratebox/piratebox/bin/timesave.sh --- piratebox/piratebox/bin/timesave.sh | 48 +++++++++++++++++------------ 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/piratebox/piratebox/bin/timesave.sh b/piratebox/piratebox/bin/timesave.sh index a733247..08f59f9 100755 --- a/piratebox/piratebox/bin/timesave.sh +++ b/piratebox/piratebox/bin/timesave.sh @@ -11,6 +11,11 @@ # Licenced under GPL-2 @ 2012 # Matthias Strubel matthias.strubel@aod-rgp.de +##function for similar saving & getting time +get_datetime() { + date +%C%g%m%d%H%M +} + # Load configfile @@ -35,37 +40,40 @@ if [ "$2" = "install" ] ; then echo " */5 * * * * $PIRATEBOX_FOLDER/bin/timesave.sh $PIRATEBOX_FOLDER/conf/piratebox.conf save " >> $PIRATEBOX_FOLDER/tmp/crontab crontab $PIRATEBOX_FOLDER/tmp/crontab + echo "initialize timesave file" touch $TIMESAVE chmod a+rw $TIMESAVE + get_datetime > $TIMESAVE - if [ "$OPENWRT" = "yes" ] ; then - echo "Placing Timerecover on Startup" - echo " $0 $1 recover " >> /etc/rc.local - sed 's:exit:#exit:g' -i /etc/rc.local - echo "Activating cron-service.." - /etc/init.d/cron enable - /etc/init.d/cron start - echo "done" - else - echo "Remember to have cron active..." - echo " on OpenWrt run: /etc/init.d/cron enable" - echo " /etc/init.d/cron start" - fi - #Save the current time - $0 $1 "save" + + echo "Remember MAY have to cron active..." + echo " on OpenWrt run: /etc/init.d/piratebox enable" + exit 0 fi if [ "$2" = "save" ] ; then + if [ -e $TIMESAVE ] ; then + if [ `get_datetime` -lt `cat $TIMESAVE` ] ; then + logger -s "$0 : sorry, current date-time is lower then saved one, don't save it this time" + exit 1 + fi + fi + #Save Datetime in a recoverable format... - date +%C%g%m%d%H%M > $TIMESAVE + get_datetime > $TIMESAVE exit 0 fi if [ "$2" = "recover" ] ; then - date `cat $TIMESAVE ` - [ "$?" != "0" ] && echo "error in recovering time" && exit 255 - echo "Time recovered" - exit 0 + if [ `get_datetime` -lt `cat $TIMESAVE` ] ; + date `cat $TIMESAVE ` + [ "$?" != "0" ] && echo "error in recovering time" && exit 255 + echo "Time recovered" + exit 0 + else + echo "Sorry, changing timebackward via timesave is not possible" + exit 1 + fi fi From 379f3d33276a78ce538026a6941b08065ab26f4d Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 19 Aug 2013 11:17:17 +0200 Subject: [PATCH 31/59] added mimetype for json files --- piratebox/piratebox/conf/lighttpd/mime.types | 1 + 1 file changed, 1 insertion(+) diff --git a/piratebox/piratebox/conf/lighttpd/mime.types b/piratebox/piratebox/conf/lighttpd/mime.types index aeda915..ea8b09a 100644 --- a/piratebox/piratebox/conf/lighttpd/mime.types +++ b/piratebox/piratebox/conf/lighttpd/mime.types @@ -80,6 +80,7 @@ mimetype.assign = ( ".oti" => "application/vnd.oasis.opendocument.image-template", ".oth" => "application/vnd.oasis.opendocument.text-web", + ".json" => "application/json", ".epub" => "application/epub+zip", ".fb2" => "text/xml", From 4a4be3630d8570092e4868b2ea328d52e4df02c7 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Thu, 15 Aug 2013 12:50:46 +0200 Subject: [PATCH 32/59] install_piratebox.sh now uses schema based generation for redirect.html --- piratebox/piratebox/bin/install_piratebox.sh | 13 ++----------- piratebox/piratebox/src/redirect.html.schema | 11 +++++++++++ 2 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 piratebox/piratebox/src/redirect.html.schema diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index 788e6f9..99cd59b 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -153,17 +153,8 @@ fi set_hostname() { local name=$1 ; shift; - echo " - - Redirect... - - - - - Redirect - - " > $WWW_FOLDER/redirect.html + sed "s|#####HOST#####|$name|g" $PIRATEBOX_FOLDER/src/redirect.html.schema > $WWW_FOLDER/redirect.html sed "s|HOST=\"$HOST\"|HOST=\"$name\"|" -i $PIRATEBOX_CONFIG } @@ -171,5 +162,5 @@ if [ $2 = "hostname" ] ; then echo "Switching hostname to $3" set_hostname "$3" echo "..done" -fi +fi diff --git a/piratebox/piratebox/src/redirect.html.schema b/piratebox/piratebox/src/redirect.html.schema new file mode 100644 index 0000000..2ce7385 --- /dev/null +++ b/piratebox/piratebox/src/redirect.html.schema @@ -0,0 +1,11 @@ + + Redirect... + + + + + Redirect + + + + From a20db8f526e95f4bdc2375b52475aabe5aa07cb4 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 14 Aug 2013 16:56:04 +0200 Subject: [PATCH 33/59] moved Config entry from timesave to piratebox.conf emptied out the openwrt section in timesave script, which wasn't called anymore Conflicts: piratebox/piratebox/bin/timesave.sh --- piratebox/piratebox/bin/timesave.sh | 1 - piratebox/piratebox/conf/piratebox.conf | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/timesave.sh b/piratebox/piratebox/bin/timesave.sh index 08f59f9..839af38 100755 --- a/piratebox/piratebox/bin/timesave.sh +++ b/piratebox/piratebox/bin/timesave.sh @@ -32,7 +32,6 @@ fi . $1 -TIMESAVE="$PIRATEBOX_FOLDER/timesave_file" if [ "$2" = "install" ] ; then crontab -l > $PIRATEBOX_FOLDER/tmp/crontab 2> /dev/null diff --git a/piratebox/piratebox/conf/piratebox.conf b/piratebox/piratebox/conf/piratebox.conf index 892164b..a4ec328 100644 --- a/piratebox/piratebox/conf/piratebox.conf +++ b/piratebox/piratebox/conf/piratebox.conf @@ -7,6 +7,7 @@ ## 2012-06-08 Changed IP Stuff to generating dnsmasq.conf stuff ## ADDed SubConfig for IPV6 config ## Changed Order of config +## 2013-08-14 Added timesave url ## ######## @@ -114,6 +115,8 @@ IP=$NET.$IP_SHORT #----------------- Configuration for the pure piratebox -------------------# ## droopy, webserver, shoutbox- and forum-server +## Timesave file for non RTC devices +TIMESAVE="$PIRATEBOX_FOLDER/share/timesave_file" #Start droopy? - Enable upload? DROOPY_ENABLED="yes" From 9673ae2f30432e96870cd1834456a5851808fee9 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 26 Aug 2013 09:36:49 +0200 Subject: [PATCH 34/59] update of beta3 changes --- CHANGELOG | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index bb0c02e..84a4e87 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -18,3 +18,10 @@ NOTE: This may only be a partial changelog, check github / your package manager * [Fixed] Hide dot files in directory-listing which are usually hidden files * [New] Moved DHCP leasefile into memory on OpenWRT system (/tmp is memory) +=== 1.0.0 beta3 === + +* [Fix] Timesave script does not contain parts for OpenWRT anymore +* [Fix] Timesave-file location is now configured in piratebox.conf +* [Fix] Fix in Changing hostname functionality +* [New] Hostname changing generates the redirect.html now based on a Schema file +* [New] Added JSON Mime-Type From a59d56977df9ec674a9f9f97f45bb3d9c4019eb0 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Thu, 12 Sep 2013 20:38:08 +0200 Subject: [PATCH 35/59] Enable unescaped blanks in upload-folder variable --- CHANGELOG | 1 + piratebox/piratebox/init.d/piratebox | 2 +- piratebox/piratebox/init.d/piratebox_alt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 84a4e87..178c251 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -25,3 +25,4 @@ NOTE: This may only be a partial changelog, check github / your package manager * [Fix] Fix in Changing hostname functionality * [New] Hostname changing generates the redirect.html now based on a Schema file * [New] Added JSON Mime-Type +* [Fix] Enable unescaped blanks in Upload-Folder diff --git a/piratebox/piratebox/init.d/piratebox b/piratebox/piratebox/init.d/piratebox index 34fe08d..f35aeae 100755 --- a/piratebox/piratebox/init.d/piratebox +++ b/piratebox/piratebox/init.d/piratebox @@ -145,7 +145,7 @@ case "$1" in DROOPY_USER=" -c $LIGHTTPD_USER:$LIGHTTPD_GROUP " fi log_daemon_msg "Starting droopy..." - start-stop-daemon $DROOPY_USER -m --start --background --pidfile $PIDFILE_DROOPY --exec $PIRATEBOX/bin/droopy -- -H $HOST -d $UPLOADFOLDER -c "" -m "$DROOPY_TXT" $DROOPY_USERDIR $DROOPY_PORT + start-stop-daemon $DROOPY_USER -m --start --background --pidfile $PIDFILE_DROOPY --exec $PIRATEBOX/bin/droopy -- -H $HOST -d "$UPLOADFOLDER" -c "" -m "$DROOPY_TXT" $DROOPY_USERDIR $DROOPY_PORT log_end_msg $? fi diff --git a/piratebox/piratebox/init.d/piratebox_alt b/piratebox/piratebox/init.d/piratebox_alt index 2525916..66e2489 100755 --- a/piratebox/piratebox/init.d/piratebox_alt +++ b/piratebox/piratebox/init.d/piratebox_alt @@ -138,7 +138,7 @@ case "$1" in if [ "$DROOPY_USE_USER" = "yes" ] ; then DROOPY_USER=" -c $LIGHTTPD_USER:$LIGHTTPD_GROUP " fi - start-stop-daemon $DROOPY_USER -m -S -b -p $PIDFILE_DROOPY -x $PIRATEBOX/bin/droopy -- -H $HOST -d $UPLOADFOLDER -m "$DROOPY_TXT" -c "" $DROOPY_USERDIR $DROOPY_PORT + start-stop-daemon $DROOPY_USER -m -S -b -p $PIDFILE_DROOPY -x $PIRATEBOX/bin/droopy -- -H $HOST -d "$UPLOADFOLDER" -m "$DROOPY_TXT" -c "" $DROOPY_USERDIR $DROOPY_PORT echo $? fi From 3e2acfb9ea39bc07527361494eefa865a6841b68 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Tue, 17 Sep 2013 07:25:26 +0200 Subject: [PATCH 36/59] Release 1.0-beta3 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6bc2223..50cc9e2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME = piratebox-ws -VERSION = 1.0.0_beta2 +VERSION = 1.0.0_beta3 ARCH = all PB_FOLDER=piratebox PB_SRC_FOLDER=$(PB_FOLDER)/$(PB_FOLDER) From b021550c25867eca780dc4c7f57e728b62fcf30e Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Fri, 27 Sep 2013 15:29:56 +0200 Subject: [PATCH 37/59] Fixed captive Portal detection for iOS7 --- CHANGELOG | 1 + piratebox/piratebox/conf/lighttpd/lighttpd.conf | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 090a995..5613fdd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,3 +2,4 @@ CHANGELOG === v0.6G === * Hide dot files in directory-listing which are usually hidden files +* Fixed captive Portal detection for iOS7 diff --git a/piratebox/piratebox/conf/lighttpd/lighttpd.conf b/piratebox/piratebox/conf/lighttpd/lighttpd.conf index 9f828de..06b867a 100644 --- a/piratebox/piratebox/conf/lighttpd/lighttpd.conf +++ b/piratebox/piratebox/conf/lighttpd/lighttpd.conf @@ -77,4 +77,13 @@ server.error-handler-404 = "/redirect.html" #accesslog.filename = "/opt/piratebox/tmp/access.log" +# Fix for iOS7 +# It ask especially different domains without a specific URL. +# It want to get a "success" message, to allow full system/internet access +$HTTP["useragent"] =~ "CaptiveNetworkSupport" { + server.document-root = "/opt/piratebox/www/library/test/" + index-file.names = ( "success.html" ) + dir-listing.activate = "disable" + server.error-handler-404 = "/success.html" +} From 3a8637034f23c2eb4f5ff1bec4e368e50bca54c0 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Fri, 27 Sep 2013 15:30:18 +0200 Subject: [PATCH 38/59] Release 0.6G * Fixed captive Portal detection for iOS7 * ignore hidden Files in directory list --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9ebb30e..9d29a00 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME = piratebox-ws -VERSION = 0.6F +VERSION = 0.6G ARCH = all PB_FOLDER=piratebox PB_SRC_FOLDER=$(PB_FOLDER)/$(PB_FOLDER) From 7b5ee7e4bccb5d4225e026e2db829875c30ea0cc Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Fri, 27 Sep 2013 15:29:56 +0200 Subject: [PATCH 39/59] Fixed captive Portal detection for iOS7 Conflicts: CHANGELOG --- CHANGELOG | 5 ++++- piratebox/piratebox/conf/lighttpd/lighttpd.conf | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 178c251..9433cf1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -15,7 +15,6 @@ NOTE: This may only be a partial changelog, check github / your package manager * [New] install dependencies * [Fixed] General cleaning * [New] possibility in install_piratebox.sh to exchange the hostname easily -* [Fixed] Hide dot files in directory-listing which are usually hidden files * [New] Moved DHCP leasefile into memory on OpenWRT system (/tmp is memory) === 1.0.0 beta3 === @@ -26,3 +25,7 @@ NOTE: This may only be a partial changelog, check github / your package manager * [New] Hostname changing generates the redirect.html now based on a Schema file * [New] Added JSON Mime-Type * [Fix] Enable unescaped blanks in Upload-Folder + +=== v0.6G === +* [Fix] Hide dot files in directory-listing which are usually hidden files +* [Fix] Fixed captive Portal detection for iOS7 diff --git a/piratebox/piratebox/conf/lighttpd/lighttpd.conf b/piratebox/piratebox/conf/lighttpd/lighttpd.conf index f7dd222..7ad6ed3 100644 --- a/piratebox/piratebox/conf/lighttpd/lighttpd.conf +++ b/piratebox/piratebox/conf/lighttpd/lighttpd.conf @@ -95,4 +95,13 @@ server.error-handler-404 = "/redirect.html" #accesslog.filename = "/opt/piratebox/tmp/access.log" +# Fix for iOS7 +# It ask especially different domains without a specific URL. +# It want to get a "success" message, to allow full system/internet access +$HTTP["useragent"] =~ "CaptiveNetworkSupport" { + server.document-root = "/opt/piratebox/www/library/test/" + index-file.names = ( "success.html" ) + dir-listing.activate = "disable" + server.error-handler-404 = "/success.html" +} From 41b4873f0465466f8622f98c05c3f3756204e4ad Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Fri, 27 Sep 2013 15:37:14 +0200 Subject: [PATCH 40/59] Release 1.0.0-beta4 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 50cc9e2..0aad71c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME = piratebox-ws -VERSION = 1.0.0_beta3 +VERSION = 1.0.0_beta4 ARCH = all PB_FOLDER=piratebox PB_SRC_FOLDER=$(PB_FOLDER)/$(PB_FOLDER) From 28c6271771dd525c1d1655f0577b03f0062d1ac3 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Sun, 10 Nov 2013 11:25:58 +0100 Subject: [PATCH 41/59] deliver sample configuration of minidlna within PirateBox release --- .../piratebox/src/linux.example.minidlna.conf | 17 +++++++++++++++++ .../piratebox/src/openwrt.example.minidlna | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 piratebox/piratebox/src/linux.example.minidlna.conf create mode 100644 piratebox/piratebox/src/openwrt.example.minidlna diff --git a/piratebox/piratebox/src/linux.example.minidlna.conf b/piratebox/piratebox/src/linux.example.minidlna.conf new file mode 100644 index 0000000..a88bb63 --- /dev/null +++ b/piratebox/piratebox/src/linux.example.minidlna.conf @@ -0,0 +1,17 @@ +port=8200 +# Adjust the interfaces u are using +# network_interface=wlan0 +friendly_name=PirateBox DLNA +db_dir=/opt/piratebox/tmp +log_dir=/opt/piratebox/tmp +inotify=yes +enable_tivo=no +strict_dlna=no +album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg +presentation_url=http://piratebox.lan +notify_interval=900 +serial=12345678 +model_number=1 +root_container=B +media_dir=/opt/piratebox/share/Shared + diff --git a/piratebox/piratebox/src/openwrt.example.minidlna b/piratebox/piratebox/src/openwrt.example.minidlna new file mode 100644 index 0000000..d8f25a4 --- /dev/null +++ b/piratebox/piratebox/src/openwrt.example.minidlna @@ -0,0 +1,17 @@ +config minidlna config + option 'enabled' '1' + option port '8200' + option interface 'br-lan' + option friendly_name 'PirateBox DLNA' + option db_dir '/var/run/minidlna' + option log_dir '/var/log' + option inotify '1' + option enable_tivo '0' + option strict_dlna '0' + option presentation_url 'http://piratebox.lan' + option notify_interval '900' + option serial '12345678' + option model_number '1' + option root_container '.' + list media_dir '/mnt/usb/PirateBox/Shared/' + option album_art_names 'Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg' From a49330146421ac8950106674946b4534c1ea9b1e Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Sun, 10 Nov 2013 11:28:56 +0100 Subject: [PATCH 42/59] updated Changelog for mising points --- CHANGELOG | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 9433cf1..cd58f62 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -26,6 +26,14 @@ NOTE: This may only be a partial changelog, check github / your package manager * [New] Added JSON Mime-Type * [Fix] Enable unescaped blanks in Upload-Folder +=== 1.0.0 beta4 === + +* [Fix] iOS 7 captive Portal fix + +=== 1.0.0 beta5 === + +* [New] Sample configuration for UPnP Server + === v0.6G === * [Fix] Hide dot files in directory-listing which are usually hidden files * [Fix] Fixed captive Portal detection for iOS7 From 13b0d5c52e426eeac6697ff1aaa2e862c0d02245 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Fri, 29 Nov 2013 08:57:11 +0100 Subject: [PATCH 43/59] Release 1.0.0-beta5 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0aad71c..915ca79 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME = piratebox-ws -VERSION = 1.0.0_beta4 +VERSION = 1.0.0_beta5 ARCH = all PB_FOLDER=piratebox PB_SRC_FOLDER=$(PB_FOLDER)/$(PB_FOLDER) From e48821681f0d91849960b2a83c309ef7602b0ce9 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Thu, 16 Jan 2014 22:53:42 +0100 Subject: [PATCH 44/59] Upgrade opt/piratebox image from ext3 to ext4 and 50MB file --- Makefile | 2 +- image_stuff/OpenWRT.img.gz | Bin 23573 -> 0 bytes image_stuff/OpenWRT_ext4_100MB.img.gz | Bin 0 -> 107404 bytes image_stuff/OpenWRT_ext4_50MB.img.gz | Bin 0 -> 54561 bytes 4 files changed, 1 insertion(+), 1 deletion(-) delete mode 100755 image_stuff/OpenWRT.img.gz create mode 100644 image_stuff/OpenWRT_ext4_100MB.img.gz create mode 100644 image_stuff/OpenWRT_ext4_50MB.img.gz diff --git a/Makefile b/Makefile index 915ca79..535e883 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ VERSION_FILE=$(PB_FOLDER)/$(PB_FOLDER)/version IMAGE_FILE=piratebox_ws_1.0_img.gz TGZ_IMAGE_FILE=piratebox_ws_1.0_img.tar.gz -SRC_IMAGE=image_stuff/OpenWRT.img.gz +SRC_IMAGE=image_stuff/OpenWRT_ext4_50MB.img.gz SRC_IMAGE_UNPACKED=image_stuff/piratebox_img MOUNT_POINT=image_stuff/image OPENWRT_FOLDER=image_stuff/openwrt diff --git a/image_stuff/OpenWRT.img.gz b/image_stuff/OpenWRT.img.gz deleted file mode 100755 index be31df89bd2558c41ca67af864564144afdd0ae7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 23573 zcmeI&YgiL!+6Qp;t-3B2-qx;I6sUEp-MWa>jh4_DtqN5{ARGdL5Kn-eaH!&d1`}-2 zS{H$~ib^0vMIfh1kT`(BB)V2uiy>7qGXf3KDo|$tMI4ZDTEE zN$%(WJoB4LK8<(YAO6r8u`y)Y|Ac;;n8xKquJ|N1d0KBrbDVV5o#U0)|DC~m#6vc!@&*!EHF zS)at_wk@?%D3NFjto0WY*^ef>U*x9lN}uldz;UbdcIS5!`<{&(%OSVV2Z*mReO-;& z+u?lU#Ta>f@L;3hP;*OnT569k%i^igz(>^i?xf1gg@UPsGgN|(N?1WHl0YTI7fh9_^QRK( zsVy8}Q85gv_)vv990;UhT74h&kcrpou2qfV&r-wK=EEIrEI)5kz(A~^s?hh5#n#uE zvu{B@E4`Z-PrmbQfcc*#6-s4c+C+b<*zV_7I{J+{qeO6@?0CXn)G2Y;Gq=v2J>(E| z-hRB}tfjkVBxP~j?b9_~DeuHt&>AvjNk^%P6s0|JbAOifI8)9pe{k>KU{Xd|bGQCz zieKD!r}afCjJRf0pKni}KJ7R6TA6gp?!WcK{Iv~i51&W5xd$g5Cuaw;4~#Bj%f=@< z*rRub*G@9;PdZS4Z}y~oYkz6Zx#LRawA2qKzdtkRCiefo-%>+d1H7ka*BIMODLI)z zncMG;FZ^sr{qlx@fK#3=1-plL4<`lbM{7p)vuk#><+cs%qSx8>dU@-Obs+PwK)J9O$)HTzpxA{#3nzaeY0A1o_& zh#eW$?1#oxJ@Nk;|NnjbLeA(s!qRY-xXr?R0v4ROd*FyQVI@)}TZ32KC~+Ozo%!rK zpvw{2^W`VFA~HQ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-0t=jl!1Hvov&V2UMd z1~>r{EVO+Ahl|y#wIM*OGcz^11j_>Q+G}c6kg%k^wpQIIJl1|GQzauB;NU)91JX|# zoszzAwt__*gSmbDQJV=Cj4LGZqu6wCyJzHVY%#dUGx`|z8o1jtDhTrfQ#`p%*c@=@ z_(chitv-oAVpeQ}O$p%AJKQxL@h|Wm_Zs-Q`Qx+#j z!A8r;7*;~4?Ian=;#+NcGM**ywdIiE)x7W*{agIiEjIP{?CLppzDkGw1OC{DmxufaZ}f=`M()B}ed3ytXYfZ*j6huk zbnz-o32GF8MNqg9T?52GQ9^8uP{yl6)ub@Dy?V7O9chF&r}7+H3oz*1mKq+1M#Erg zLY;xCxzw`t_IP$C)R$l|MPN^;P-NfvF^2oN3doLSzY(c`_$ zsupMvUjs_`VeaTAa4(-@hJuM2!&R+fIiWHbv`QgiFqqO53yDg@l{94>QEM>vD*_0u zp+UkOwi!WzUEpSWLR=RqytF~M8`&hf?4@oZj*Du_R8>T=sJ2YqLmU-dN>H64ibQaN z8Y4o<9#MIxrVj5DRZVc7pxLBE9OjJ*h;nEBtX9`qOKe{broZR97rNF@=lt?Jp;!F<2wV%reafHfYxXDI zTL1hj?u<1fzsV=wem@tKK2utN7N7-a0a}0-pap0FT7VXy1!w_UU`k-o!uWc(&!$aV GH~n9y*+oA9 diff --git a/image_stuff/OpenWRT_ext4_100MB.img.gz b/image_stuff/OpenWRT_ext4_100MB.img.gz new file mode 100644 index 0000000000000000000000000000000000000000..edc0825a4c3c4f8df8306fb3ac06c6d68548a9f9 GIT binary patch literal 107404 zcmeI*c~n!^x&Uxm^Tn8=?2w1IxqNETM83HQfks$;E8Ax)TdSCW=>;CuFx@%o+zx-pezO%pm z?cd&KpM-VR(JXQDA~b%a<*4|7Pjl13`NI;?EkaqbXI= zo>I97^ZA};xoXRIb9dHwUcH`Tb$a())wG3YzB#sF{`k@_eI8rSymEcvc=gs3=Vsqh zAJ5vdV6R9KAM|E+Y0o*YQW;B78`Ivymf()^n87Fb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sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5CDOXLck#EO=9 z^U~Phh~l{PQY#&44!t5`B_k+Xm0jC1iK(cpComy!<+Pi+PaZ1(**VpXFP@CcM?KaeL#sdD$ z>a*MH)B+|s%b0upS)yw6%6dkE#bW8)eXC-*_*Fh;_Rs$;6^9MEE*l7#AKmY_l z00ck)1V8`;KmY_l00ck)1V8`;KmY_l00ck)1V8`;KmY_l00ck)1U`0wW9fY6fw=}9 zdfKwpSQl^A_V$6q2L^MOdiXKEw_UO{>ZEzF)AUx;DYMiwCN3SxU~?!i zjqUNg>`MJ8OWUncSEof58X5WfDkHL$c8LOgoH5Y8Y5W||QyzYOSICYvn%bw_T|=(+3`T@)Xz3P?NB)DsnF5%RH)T(&Q=?aM4Z(7&?00si_NZ*90w4eaAOHd&00JNY0w4eaAOHd&00JNY0w4ea zAOHd&00JNY0w4eaAn-2&$0&Bw-`}b*%sDXeUt;hP1V8`;KmY_l00ck)1V8`;KmY_l z00ck)1V8`;KmY_l00ck)1V8`;KmY_l;NufW8GHHDyL$oF{*E_hEQ5!@f4GlufXYAs m1V8`;KmY_l00ck)1V8`;KmY_j6oI>QRi3j3-u^x1FaHCTS;0jB literal 0 HcmV?d00001 diff --git a/image_stuff/OpenWRT_ext4_50MB.img.gz b/image_stuff/OpenWRT_ext4_50MB.img.gz new file mode 100644 index 0000000000000000000000000000000000000000..61a50cff2cd1520ab05d1aec4d5d7b295dacff6d GIT binary patch literal 54561 zcmeI)c~Dc=9>8%dBKE0JtJP5!TX09At|%cy+p-8kR8%SyqD4Sumq262#OG|NlYOZf&`L>_MG?E`=ft2W8e65250#C%f07*&Po1q zGADlG#9?~-77a~$kXL}qmaPo01I(4Cd;NVhBm&lPsaJGuUs2NjshbKt*H`_xd3xb4 zmjc#w$v`2iz~zSmMW@))tUXdjy?ctCa%ZmhJ=*fK%e?Q6c&d&^nLZrf^ZL#*ONJLC z|ExkaD0xyTDx!#^7@IFDY%sb?T$UHejG}wApcp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$O)V0AOY&bIpPNYcS?_m);~ z8CEN{NHTw{FBNsiT^)P^C+S1(DqIT$KmY_l00ck)1V8`;KmY_l00ck)1V8`;KmY_l z00ck)1V8`;KmY{(!2+>nVXt>)9$omm=Fluh(a#g4e@I?z`^>D&cUSU^dE=Yz6_^)z zne9CPhi;c)buX$L=iAGXJBL`TWYE3D=(O5qf>0U8y(q)?Jyl`fYFhTA#-H zZ&&<-pZHT>T9EsI<>3bVOD35)^hJWBVcQKinQY<3_jb0o9K`RNBv1C0#Wq#_H5=C~kkz9JMS2n0RJWN^6|EZ)^ z!gClMwH0q>8JSUB8`!1AQ$x*{Kb^(S9Pv{Nc}Y>0pZYGt^Me2gfB*=900@8p2!H?x zfB*=900@8p2!H?xfB*=900@8p2!H?xfWRj#Fyf=DGydK4$Br=c)^CG9AOHd&00JNY z0w4eaAOHd&00JNY0w4eaAOHd&00JNY0w4eaAOHd&00JNY0{`yO=@6t z`<`56U_gCpQky7k5{5^g$jV8x$*{`KT&XwEIwIvz>2K&&mV4gB?D@UXy`Jb?kc#nCkRQHhho4 zhd(!PMGyc15C8!X009sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5cpID^h>ql r-hVB^ud3?7L!W=D4Dj3_00JNY0w4eaAn Date: Thu, 16 Jan 2014 22:55:15 +0100 Subject: [PATCH 45/59] added imagefile to changelog --- CHANGELOG | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index cd58f62..e7a77e0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -34,6 +34,10 @@ NOTE: This may only be a partial changelog, check github / your package manager * [New] Sample configuration for UPnP Server +=== 1.0.0 beta6 === + +* [New] Image file is ext4 and 50MB + === v0.6G === * [Fix] Hide dot files in directory-listing which are usually hidden files * [Fix] Fixed captive Portal detection for iOS7 From af7b0006e0cee8ec1d5d2b03a87d0a71f8c84764 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Wed, 2 Apr 2014 18:52:01 +0200 Subject: [PATCH 46/59] Ensure Shoutbox File is always writable --- piratebox/piratebox/bin/shoutbox_stuff.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/shoutbox_stuff.sh b/piratebox/piratebox/bin/shoutbox_stuff.sh index 8bf5f5a..af5db55 100755 --- a/piratebox/piratebox/bin/shoutbox_stuff.sh +++ b/piratebox/piratebox/bin/shoutbox_stuff.sh @@ -31,6 +31,6 @@ python psogen.py generate #Set correct permissions chown $LIGHTTPD_USER:$LIGHTTPD_GROUP $SHOUTBOX_CHATFILE chown $LIGHTTPD_USER:$LIGHTTPD_GROUP $SHOUTBOX_GEN_HTMLFILE - +chmod ug+rw $SHOUTBOX_CHATFILchmod ug+rw $SHOUTBOX_CHATFILEE From 0756f76dd76c58b4b4c49f7f91f12ff584c86e0e Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 7 Apr 2014 08:57:45 +0200 Subject: [PATCH 47/59] only download kareha-zip file when it is not available --- piratebox/piratebox/bin/install_piratebox.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index 99cd59b..4976a16 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -90,12 +90,15 @@ if [ $2 = 'imageboard' ] ; then exit 0; fi - echo " Wgetting kareha-zip file " + cd $PIRATEBOX_FOLDER/tmp KAREHA_RELEASE=kareha_3.1.4.zip - wget http://wakaba.c3.cx/releases/$KAREHA_RELEASE - if [ "$?" != "0" ] ; then - echo "wget kareha failed.. you can place the current file your to $PIRATEBOX_FOLDER/tmp " + if [ ! -e $PIRATEBOX_FOLDER/tmp/$KAREHA_RELEASE ] ; then + echo " Wgetting kareha-zip file " + wget http://wakaba.c3.cx/releases/$KAREHA_RELEASE + if [ "$?" != "0" ] ; then + echo "wget kareha failed.. you can place the current file your to $PIRATEBOX_FOLDER/tmp " + fi fi if [ -e $PIRATEBOX_FOLDER/tmp/$KAREHA_RELEASE ] ; then From 3021d2cdd646a48e0fc115e3addb3d7d6dcd7ff5 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Thu, 5 Jun 2014 11:13:51 +0200 Subject: [PATCH 48/59] uncommon line mix fixed --- piratebox/piratebox/bin/shoutbox_stuff.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/shoutbox_stuff.sh b/piratebox/piratebox/bin/shoutbox_stuff.sh index af5db55..0d357cc 100755 --- a/piratebox/piratebox/bin/shoutbox_stuff.sh +++ b/piratebox/piratebox/bin/shoutbox_stuff.sh @@ -31,6 +31,7 @@ python psogen.py generate #Set correct permissions chown $LIGHTTPD_USER:$LIGHTTPD_GROUP $SHOUTBOX_CHATFILE chown $LIGHTTPD_USER:$LIGHTTPD_GROUP $SHOUTBOX_GEN_HTMLFILE -chmod ug+rw $SHOUTBOX_CHATFILchmod ug+rw $SHOUTBOX_CHATFILEE +chmod ug+rw $SHOUTBOX_CHATFILE +chmod ug+rw $SHOUTBOX_CHATFILE From 9d50d004a84b260d79df846fbc56e447f9b4e70f Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Thu, 5 Jun 2014 14:00:23 +0200 Subject: [PATCH 49/59] Fixed typo in generate config script --- piratebox/piratebox/bin/generate_config_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/generate_config_files.sh b/piratebox/piratebox/bin/generate_config_files.sh index 52e4aa9..8da4979 100755 --- a/piratebox/piratebox/bin/generate_config_files.sh +++ b/piratebox/piratebox/bin/generate_config_files.sh @@ -123,7 +123,7 @@ generate_lighttpd_env() { local PIRATEBOX=$5 local SHOUTBOX_CHATFILE=$6 - echo "Generating Environment-config for ligttpd ....." + echo "Generating Environment-config for lighttpd ....." LIGHTTPD_ENV_BR_LINE="" if [ "$GLOBAL_CHAT" = "yes" ] ; then From 56d956998198de6590ef270e03a1ef546669fd82 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Thu, 5 Jun 2014 14:26:54 +0200 Subject: [PATCH 50/59] Adding systemd file for RPi Image --- BuildScripts/piratebox.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 BuildScripts/piratebox.service diff --git a/BuildScripts/piratebox.service b/BuildScripts/piratebox.service new file mode 100644 index 0000000..1951d48 --- /dev/null +++ b/BuildScripts/piratebox.service @@ -0,0 +1,13 @@ +[Unit] +Description=PirateBox Service + +[Service] +Type=forking +ExecStart=/opt/piratebox/init.d/piratebox_alt start +ExecStop=/opt/piratebox/init.d/piratebox_alt stop +#Restart=/opt/piratebox/init.d/piratebox_alt restart +#PIDFile=/var/run/piratebox.pid + +[Install] +WantedBy=multi-user.target + From 37a06802da5fb622016f03feb2b112f8e45c7e94 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Thu, 5 Jun 2014 15:29:56 +0200 Subject: [PATCH 51/59] fixed missing then --- piratebox/piratebox/bin/timesave.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/bin/timesave.sh b/piratebox/piratebox/bin/timesave.sh index 839af38..55514b1 100755 --- a/piratebox/piratebox/bin/timesave.sh +++ b/piratebox/piratebox/bin/timesave.sh @@ -65,7 +65,7 @@ if [ "$2" = "save" ] ; then fi if [ "$2" = "recover" ] ; then - if [ `get_datetime` -lt `cat $TIMESAVE` ] ; + if [ `get_datetime` -lt `cat $TIMESAVE` ] ; then date `cat $TIMESAVE ` [ "$?" != "0" ] && echo "error in recovering time" && exit 255 echo "Time recovered" From 6f5e1e495ae133369ac6f2cde762a83868e03f0e Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Fri, 6 Jun 2014 10:51:21 +0200 Subject: [PATCH 52/59] Fix for duplicate symlinks --- piratebox/piratebox/bin/install_piratebox.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piratebox/piratebox/bin/install_piratebox.sh b/piratebox/piratebox/bin/install_piratebox.sh index 4976a16..1dc8cd0 100755 --- a/piratebox/piratebox/bin/install_piratebox.sh +++ b/piratebox/piratebox/bin/install_piratebox.sh @@ -73,9 +73,9 @@ if [ $2 = 'part2' ] ; then if [ ! -f $PIRATEBOX_FOLDER/share/board/kareha.pl ] ; then cp $PIRATEBOX_FOLDER/src/kareha.pl $PIRATEBOX_FOLDER/share/board fi - - ln -s $PIRATEBOX_FOLDER/share/board $PIRATEBOX_FOLDER/www/board - ln -s $UPLOADFOLDER $PIRATEBOX_FOLDER/www/Shared + + [[ ! -L $PIRATEBOX_FOLDER/www/board ]] && ln -s $PIRATEBOX_FOLDER/share/board $PIRATEBOX_FOLDER/www/board + [[ ! -L $PIRATEBOX_FOLDER/www/Shared ]] && ln -s $UPLOADFOLDER $PIRATEBOX_FOLDER/www/Shared fi #Install the image-board From 129251582b461b23ddf8899eda055299aff57269 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Fri, 6 Jun 2014 10:54:21 +0200 Subject: [PATCH 53/59] Force the user to change the password, because he has to edit the file anyway. (remove leading # ) --- piratebox/piratebox/src/kareha_img_config.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piratebox/piratebox/src/kareha_img_config.pl b/piratebox/piratebox/src/kareha_img_config.pl index 0a47cff..51b7a0f 100644 --- a/piratebox/piratebox/src/kareha_img_config.pl +++ b/piratebox/piratebox/src/kareha_img_config.pl @@ -6,8 +6,8 @@ # # System config - use constant ADMIN_PASS => 'CHANGEME'; # Admin password. For fucks's sake, change this. - use constant SECRET => 'CHANGEME'; # Cryptographic secret. CHANGE THIS to something totally random, and long. +# use constant ADMIN_PASS => 'CHANGEME'; # Admin password. For fucks's sake, change this. +# use constant SECRET => 'CHANGEME'; # Cryptographic secret. CHANGE THIS to something totally random, and long. #use constant CAPPED_TRIPS => ('!!example1'=>' capcode','!!example2'=>' cap'); # Admin tripcode hash, for startng threads when locked down, and similar. Format is '!trip'=>'capcode', where 'capcode' is what is shown instead of the trip. This can contain HTML, but keep it valid XHTML! # Page look From 122143588710b0837a087d3736167ef16847ad12 Mon Sep 17 00:00:00 2001 From: Matthias Strubel Date: Mon, 9 Jun 2014 08:34:43 +0200 Subject: [PATCH 54/59] Fixing wrong link path to board out of shared folder --- piratebox/piratebox/src/HEADER.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piratebox/piratebox/src/HEADER.txt b/piratebox/piratebox/src/HEADER.txt index 22c785b..a82fc2b 100644 --- a/piratebox/piratebox/src/HEADER.txt +++ b/piratebox/piratebox/src/HEADER.txt @@ -17,7 +17,7 @@