From d4b14c1d02317dfe39dc43482ff6cda1a9680bbf Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 30 Jan 2017 10:39:45 +0100 Subject: [PATCH] Bash/Php const+func with source -> update bootloader --- daemon | 10 ++-------- lib/api/source/fetch.php | 2 +- lib/api/source/sync.php | 2 +- lib/cyclic-hash/source/decr.php | 2 +- lib/cyclic-hash/source/hash.php | 2 +- lib/cyclic-hash/source/new.php | 2 +- lib/include/bash/const | 34 +++++++++++++++++++++++++++++++++ lib/include/bash/func | 32 +++++++++++++++++++++++++++++++ lib/include/{ => php}/const | 2 +- lib/include/{ => php}/func | 0 lib/mfrc522/source/read.php | 2 +- update | 13 +++++++++---- 12 files changed, 84 insertions(+), 19 deletions(-) create mode 100755 lib/include/bash/const create mode 100755 lib/include/bash/func rename lib/include/{ => php}/const (91%) rename lib/include/{ => php}/func (100%) diff --git a/daemon b/daemon index 591176d..4fae714 100755 --- a/daemon +++ b/daemon @@ -1,11 +1,5 @@ #!/bin/sh -c=0; +ABSPATH=$( dirname $(realpath $0) ); -while [ 1 ]; do - - echo "daemon launched $c"; - sleep 1; - - c=`expr $c + 1`; -done; +$ABSPATH/lib/mfrc522/loop; diff --git a/lib/api/source/fetch.php b/lib/api/source/fetch.php index 765c1c4..2f6eab3 100755 --- a/lib/api/source/fetch.php +++ b/lib/api/source/fetch.php @@ -1,6 +1,6 @@ > $LOG_DIR."/$3.log"; + +} diff --git a/lib/include/const b/lib/include/php/const similarity index 91% rename from lib/include/const rename to lib/include/php/const index 481f17e..2fa6f04 100755 --- a/lib/include/const +++ b/lib/include/php/const @@ -9,7 +9,7 @@ define('DATA_DIR', ROOT_DIR.'/data'); define('CONF_DIR', ROOT_DIR.'/conf'); #define('SOURCE_DIR', ROOT_DIR.'/source'); - define('SOURCE_DIR', ROOT_DIR.'/home/xdrm-brackets/Desktop/git.xdrm.io/logauth-sats'); + define('SOURCE_DIR', '/home/xdrm-brackets/Desktop/git.xdrm.io/logauth-sats'); define('TMP_DIR', ROOT_DIR.'/tmp'); # CONFIGURATION FILES diff --git a/lib/include/func b/lib/include/php/func similarity index 100% rename from lib/include/func rename to lib/include/php/func diff --git a/lib/mfrc522/source/read.php b/lib/mfrc522/source/read.php index 48c2b9f..51e0df6 100755 --- a/lib/mfrc522/source/read.php +++ b/lib/mfrc522/source/read.php @@ -2,7 +2,7 @@