Skip to content

Commit 150ba18

Browse files
committed
Merge branch 'hotfix-1.1.3'
* hotfix-1.1.3: (25 commits) js/script.js : Add additional disk usage refresh. Switch to version 1.1.3 CHANGELOG: note down RPi Adjustments Version flag 1.1.3-beta RPI-MOTD: Version update Introduced SDCard helper for RPi CHANGELOG: Add missing entries for 1.1.3 lighttpd.conf: Reduce cache to a minimum usb_share.sh: Force disk usage update hostapd.conf: More Comments in hostapd for WPA mode Feature: Add scripts for on the fly client mode wifi_detect: only change piratebox.conf if it is a wifi device wifi_detect.sh: Bugfixes and adjust piratebox configuration hostapd.conf: More comment to enable n wifi mode Fix for issue on RPi3 with multiple wifi cards Fix Shellcheck results Track fix ger language Track new contribution Correct/translate German localisation strings. --added brazilian portuguese translation to the landing page (data.pt-br.properties) ...
2 parents 775501c + 7602d1f commit 150ba18

24 files changed

Lines changed: 340 additions & 49 deletions

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Contributors for modifications:
2424
# Mike Weaver
2525
# bartschat - RTC RPi feature
2626
# casdr
27+
# jdieg0
28+
# a-ira
2729
# ... and all others I might have forgotten.
2830

2931

CHANGELOG

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
CHANGELOG
22

3+
=== 1.1.3 ===
4+
* [New] Translation bt-pr
5+
* [New] [RPi] Helper scripts to jump to wifi client mode
6+
* [New] [RPi] Helper script to use SDCard without reboot
7+
* [New] [RPi] Image adjustments to save SDCard for to many writes
8+
* [Fix] Some shell incompatibilities
9+
* [Fix] forest.py : Cleanup used folders
10+
* [Fix] Fixed localization ID for placeholder message
11+
* [Fix] Correct/translate German localisation strings
12+
* [Fix] Adjust hostapd.conf with comments & addtional parameter for n-mode wifi
13+
* [Fix] Some help about setting up WPA2 mode for AP in hostapd.conf
14+
* [Fix] Reduce browser cache to a minimum, which solves issues with shoutbox and diskusage
15+
* [Fix] Trigger async disk usage refresh during page load
16+
317
=== 1.1.2 ===
418
* [Fix] Upgrade 1.1.x - 1.1.x does not create content symlink
519

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME = piratebox-ws
2-
VERSION = 1.1.2
2+
VERSION = 1.1.3
33
ARCH = all
44
PB_FOLDER=piratebox
55
PB_SRC_FOLDER=$(PB_FOLDER)/$(PB_FOLDER)

piratebox/piratebox/bin/firewall.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ if test -z "$run" ; then
4242
echo "ERROR: You need to select -s (start) or -k (stop) "
4343
help_text
4444
fi
45-
if test -z $PIRATEBOX_CONFIG || test -z "$FIREWALL_CONFIG" ; then
45+
if test -z "$PIRATEBOX_CONFIG" || test -z "$FIREWALL_CONFIG" ; then
4646
echo "ERROR: one of the config paths is empty, while it should not"
4747
help_text
4848
fi
4949

50-
. $PIRATEBOX_CONFIG || exit 6
51-
. $FIREWALL_CONFIG || exit 5
50+
. "$PIRATEBOX_CONFIG" || exit 6
51+
. "$FIREWALL_CONFIG" || exit 5
5252

5353
if [ "$run" = "start" ] ; then
5454
IPT_FLAG="-A"

piratebox/piratebox/bin/install_piratebox.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ PIRATEBOX_CONFIG=$1
4646

4747
if [ $2 = 'pyForum' ] ; then
4848
cp -v $PIRATEBOX_FOLDER/src/forest.py $WWW_FOLDER/cgi-bin
49-
cp -v $PIRATEBOX_FOLDER/src/forest.css $WWW_FOLDER/
49+
cp -v $PIRATEBOX_FOLDER/src/forest.css $WWW_FOLDER/content/css
5050
mkdir -p $PIRATEBOX_FOLDER/forumspace
51-
chmod a+rw -R $PIRATEBOX_FOLDER/forumspace
51+
chmod a+rw -R $PIRATEBOX_FOLDER/forumspace 2> /dev/null
5252
chown $LIGHTTPD_USER:$LIGHTTPD_GROUP $WWW_FOLDER/cgi-bin/forest.py
53-
chown $LIGHTTPD_USER:$LIGHTTPD_GROUP $WWW_FOLDER/forest.css
53+
chown $LIGHTTPD_USER:$LIGHTTPD_GROUP $WWW_FOLDER/content/forest.css 2> /dev/null
5454
echo "Copied the files. Recheck your PirateBox now. "
5555
fi
5656

piratebox/piratebox/bin/json_generation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ echo "{ \"piratebox\" : { \"module\" : { " >> $JSON_FILE
3131
#------------ upload configuration
3232
echo -n " \"upload\" : { \"status\" : $json_droopy_enabled , \"file\" : \"$UPLOAD_MODULE_FILE\" " >> $JSON_FILE
3333
#----------- droopy specialities
34-
if [ "$DROOPY_ENABLED" == "yes" ] ; then
34+
if [ "$DROOPY_ENABLED" = "yes" ] ; then
3535
echo -n ", " >> $JSON_FILE
3636
echo -n " \"upload_style\" : \"droopy\" , " >> $JSON_FILE
3737
echo -n " \"droopy_port\" : \"$DROOPY_PORT\", \"droopy_host\" : \"$HOST\" " >> $JSON_FILE
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
interface=wlan0
22
driver=nl80211
33
ssid=PirateBox - Share Freely
4-
hw_mode=g
4+
55
channel=1
66
#auth_algs=1
7+
8+
# Remove # to enable n wifi mode
79
#ieee80211n=1
10+
#wmm_enabled=1
11+
#ht_capab=[HT40+][SHORT-GI-40][DSSS_CCK-40]
12+
hw_mode=g
813

914
# Put a # in front of the following line to allow
1015
# direct client 2 client communication
1116
ap_isolate=1
17+
18+
# Uncomment the following lines to enable WPA
19+
#wpa=2
20+
#wpa_key_mgmt=WPA-PSK
21+
#wpa_pairwise=TKIP CCMP
22+
#rsn_pairwise=CCMP
23+
#wpa_passphrase=Somepassphrase

piratebox/piratebox/conf/lighttpd/lighttpd.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ $HTTP["url"] =~ "^/board/" {
9595
#-------------------------------------
9696

9797

98+
setenv.add-response-header += ( "Cache-Control" => "max-age=60, must-revalidate, no-store, no-cache, public" )
9899

99100
# 404 Error Page with redirect
100101
#

piratebox/piratebox/init.d/piratebox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ case "$1" in
155155
log_end_msg $?
156156

157157

158-
if [ "$IPV6_ENABLE" == "yes" ] && [ "$IPV6_ADVERT" == "radvd" ] ; then
158+
if [ "$IPV6_ENABLE" = "yes" ] && [ "$IPV6_ADVERT" = "radvd" ] ; then
159159
log_daemon_msg "Starting radvd..."
160160
start-stop-daemon --start --quiet --exec radvd -- -p $PIDFILE_RADVD -C $CONF_RADVD
161161
log_end_msg $?

piratebox/piratebox/init.d/piratebox_alt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ case "$1" in
148148
$PIRATEBOX_FOLDER/bin/firewall.sh -s
149149
echo $?
150150

151-
if [ "$IPV6_ENABLE" == "yes" ] && [ "$IPV6_ADVERT" == "radvd" ] ; then
151+
if [ "$IPV6_ENABLE" = "yes" ] && [ "$IPV6_ADVERT" = "radvd" ] ; then
152152
echo "Starting radvd..."
153153
start-stop-daemon -S -q -x radvd -- -p $PIDFILE_RADVD -C $CONF_RADVD
154154
echo $?

0 commit comments

Comments
 (0)