Skip to content

Commit

Permalink
[nao] Stop preload errors (#198)
Browse files Browse the repository at this point in the history
* Stop preload errors
* Add missing preload line
  • Loading branch information
Eeems authored Aug 10, 2023
1 parent cc0056d commit 8c5dd9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nao/nao.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ D_W=1408
SIMPLE=/opt/bin/simple
OPKG=/opt/bin/opkg
PROC_NAME=nao
_PRELOAD=$LD_PRELOAD
LD_PRELOAD=

# {{{ FIELD SEPARATOR STUFF
function use_newline_separator() {
Expand Down Expand Up @@ -40,7 +42,7 @@ function run_cmd() {
outfile="/home/root/.cache/nao/output"
errfile="/home/root/.cache/nao/errors"
mkdir -p /home/root/.cache/nao/ 2>/dev/null
LD_PRELOAD= PATH="/opt/bin:$PATH" ${cmd} > "${outfile}" 2> "${errfile}" &
PATH="/opt/bin:$PATH" ${cmd} > "${outfile}" 2> "${errfile}" &
pid="$!"
output=`cat "${outfile}" | tail -n50`
while ps | grep -v grep | grep " $pid "
Expand Down Expand Up @@ -114,7 +116,7 @@ function SET() {

function DISPLAY() {
use_newline_separator
RETURN=`echo "${SCENE[*]}" | ${SIMPLE}`
RETURN=`echo "${SCENE[*]}" | LD_PRELOAD=${_PRELOAD} ${SIMPLE}`
use_space_separator
SAVED_RETURN=${RETURN}
}
Expand Down

0 comments on commit 8c5dd9a

Please sign in to comment.