From 58fb5a832ee702c50f92f27eae96b1fb8ad7754b Mon Sep 17 00:00:00 2001 From: jaydee Date: Wed, 27 Aug 2025 04:27:38 +0200 Subject: [PATCH] build --- mqtt_srv.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mqtt_srv.sh b/mqtt_srv.sh index eb626bf..e4805d7 100644 --- a/mqtt_srv.sh +++ b/mqtt_srv.sh @@ -11,10 +11,12 @@ then else python3 /jffs/scripts/mqtt_srv/mqtt_srv.py > /dev/null 2>&1 & fi +cp /share/Data/nas_bash_history /root/.bash_history ;; "stop") echo lala1 >> /tmp/mqtt_srv.log kill -9 `ps |grep -e "mqtt_srv.py"|grep -v grep|awk '{ print $1}'` +cp /root/.bash_history /share/Data/nas_bash_history ;; "restart") $0 stop