From 6b2a680b98b21f1389ff45caad07d2f679605650 Mon Sep 17 00:00:00 2001 From: air-sky-one Date: Fri, 3 Jun 2016 19:14:51 +0200 Subject: [PATCH] Update S99custom Make the script more beautiful. With a great thanks to Substring for his help --- board/recalbox/fsoverlay/etc/init.d/S99custom | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/board/recalbox/fsoverlay/etc/init.d/S99custom b/board/recalbox/fsoverlay/etc/init.d/S99custom index f8048ac7284..4840850d931 100755 --- a/board/recalbox/fsoverlay/etc/init.d/S99custom +++ b/board/recalbox/fsoverlay/etc/init.d/S99custom @@ -1,3 +1,22 @@ #!/bin/bash +# +# -test -e "/recalbox/share/system/custom.sh" && /recalbox/share/system/custom.sh $1 +log=/recalbox/share/system/logs/recalbox.log +param="" + +[ ! -f /recalbox/share/system/custom.sh ] && exit 1 +case "$1" in + start) + param="start" + ;; + stop) + param="stop" + ;; + *) + ;; +esac + +if param<>"" then eval /recalbox/share/system/custom.sh $param >> $log & fi + +exit