Merge branch 'hotfix-1.0.5'
* [New] Improved styling for droopy iframe. * [New] Timesave script service file to run set the time during startup. * [Fix] Droopy call in init.d/piratebox failed to use the correct port. * [Fix] Timesave script behaviour fixed on full Linux systems. * OpenWrt's date format is now customized during build & piratebox.conf .
This commit is contained in:
commit
088c20263a
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=PirateBox timesave service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/opt/piratebox/bin/timesave.sh /opt/piratebox/conf/piratebox.conf recover
|
||||
TimeoutSec=20
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,5 +1,11 @@
|
|||
CHANGELOG
|
||||
|
||||
=== 1.0.5 ===
|
||||
* [New] Improved styling for droopy iframe.
|
||||
* [New] Timesave script service file to run set the time during startup.
|
||||
* [Fix] Droopy call in init.d/piratebox failed to use the correct port.
|
||||
* [Fix] Timesave script behaviour fixed on full Linux systems.
|
||||
* OpenWrt's date format is now customized during build & piratebox.conf .
|
||||
|
||||
=== 1.0.4 ===
|
||||
* [New] New feature: /opt/piratebox/bin/board-autoconf.sh for setting up the imageboard
|
||||
|
|
4
Makefile
4
Makefile
|
@ -1,5 +1,5 @@
|
|||
NAME = piratebox-ws
|
||||
VERSION = 1.0.4
|
||||
VERSION = 1.0.5
|
||||
ARCH = all
|
||||
PB_FOLDER=piratebox
|
||||
PB_SRC_FOLDER=$(PB_FOLDER)/$(PB_FOLDER)
|
||||
|
@ -49,6 +49,8 @@ $(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
|
||||
sed 's:LEASE_FILE_LOCATION=$$PIRATEBOX_FOLDER/tmp/lease.file:LEASE_FILE_LOCATION=/tmp/lease.file:' -i $@/piratebox.conf
|
||||
sed 's:TIMESAVE_FORMAT="":TIMESAVE_FORMAT="+%C%g%m%d%H%M":' -i $@/piratebox.conf
|
||||
|
||||
|
||||
$(OPENWRT_BIN_FOLDER):
|
||||
mkdir -p $@
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
# gives a sort of stability to complete standalone
|
||||
# systems.
|
||||
#
|
||||
# Licenced under GPL-2 @ 2012
|
||||
# Licenced under GPL-2 @ 2012,2015
|
||||
# Matthias Strubel matthias.strubel@aod-rgp.de
|
||||
|
||||
##function for similar saving & getting time
|
||||
get_datetime() {
|
||||
date +%C%g%m%d%H%M
|
||||
# Get format from piratebox.conf
|
||||
date $TIMESAVE_FORMAT
|
||||
}
|
||||
|
||||
|
||||
|
@ -66,7 +67,7 @@ fi
|
|||
|
||||
if [ "$2" = "recover" ] ; then
|
||||
if [ `get_datetime` -lt `cat $TIMESAVE` ] ; then
|
||||
date `cat $TIMESAVE `
|
||||
date -s `cat $TIMESAVE `
|
||||
[ "$?" != "0" ] && echo "error in recovering time" && exit 255
|
||||
echo "Time recovered"
|
||||
exit 0
|
||||
|
|
|
@ -118,6 +118,11 @@ IP=$NET.$IP_SHORT
|
|||
## Timesave file for non RTC devices
|
||||
TIMESAVE="$PIRATEBOX_FOLDER/share/timesave_file"
|
||||
|
||||
#On non OpenWRT you can use the default output format
|
||||
# as an input format. For OpenWrt you need to specify +%C%g%m%d%H%M
|
||||
# The content is exchanged during makefile processing and image build
|
||||
TIMESAVE_FORMAT=""
|
||||
|
||||
#Start droopy? - Enable upload?
|
||||
DROOPY_ENABLED="yes"
|
||||
#Image-SRC
|
||||
|
|
|
@ -145,8 +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 -- -d "$UPLOADFOLDER" -m "$DROOPY_TXT" --chmod $DROOPY_CHMOD $DROOPY_USERDIR
|
||||
$DROOPY_PORT
|
||||
start-stop-daemon $DROOPY_USER -m --start --background --pidfile $PIDFILE_DROOPY --exec $PIRATEBOX/bin/droopy -- -d "$UPLOADFOLDER" -m "$DROOPY_TXT" --chmod $DROOPY_CHMOD $DROOPY_USERDIR $DROOPY_PORT
|
||||
log_end_msg $?
|
||||
fi
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<div id="sidebar">
|
||||
<div id="upload" class="card">
|
||||
<h2>Upload</h2>
|
||||
<iframe width="100%" height="80" src='http://piratebox.lan:8080'>
|
||||
<iframe width="100%" height="80" src='http://piratebox.lan:8080' style='border:0px'>
|
||||
Your browser does not support iframes.. If you want to upload something, follow this <a href='http://piratebox.lan:8080'>Link</a>.
|
||||
</iframe>
|
||||
<h3><a href="/Shared">Browse Files -></a></h3>
|
||||
|
|
Loading…
Reference in New Issue