kopia lustrzana https://github.com/cyoung/stratux
error on startup
rodzic
9857f36023
commit
3cefce063b
|
@ -31,6 +31,7 @@ case "$1" in
|
||||||
log_daemon_msg "Starting $DESC" "$NAME"
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
echo powersave >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
echo powersave >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||||
# Check if we need to run an update.
|
# Check if we need to run an update.
|
||||||
|
if [ -e /root/update*.sh ] ; then
|
||||||
UPDATE_SCRIPT=`ls -1t /root/update*.sh | head -1`
|
UPDATE_SCRIPT=`ls -1t /root/update*.sh | head -1`
|
||||||
if [ -n "$UPDATE_SCRIPT" ] ; then
|
if [ -n "$UPDATE_SCRIPT" ] ; then
|
||||||
# Execute the script, remove it, then reboot.
|
# Execute the script, remove it, then reboot.
|
||||||
|
@ -40,6 +41,7 @@ case "$1" in
|
||||||
rm -f $UPDATE_SCRIPT
|
rm -f $UPDATE_SCRIPT
|
||||||
reboot
|
reboot
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
start-stop-daemon --start --background --oknodo --quiet --exec "$DAEMON_SBIN" \
|
start-stop-daemon --start --background --oknodo --quiet --exec "$DAEMON_SBIN" \
|
||||||
--pidfile "$PIDFILE" --make-pidfile -- $DAEMON_OPTS >/dev/null
|
--pidfile "$PIDFILE" --make-pidfile -- $DAEMON_OPTS >/dev/null
|
||||||
log_end_msg "$?"
|
log_end_msg "$?"
|
||||||
|
|
Ładowanie…
Reference in New Issue