blob: f1fcbfed76007ab6c7964bcefd6c489ea5577dff [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001Upstream-Status: Inappropriate [embedded specific]
2
3Signed-off-by: Kai Kang <kai.kang@windriver.com>
4---
5diff --git a/atop-pm.sh b/atop-pm.sh
6index 7f41a86..3ff4ab5 100755
7--- a/atop-pm.sh
8+++ b/atop-pm.sh
9@@ -1,4 +1,4 @@
10-#!/bin/bash
11+#!/bin/sh
12
13 case "$1" in
14 pre) /usr/bin/systemctl stop atop
15diff --git a/atop.daily b/atop.daily
16index 24d33bd..f29bd94 100755
17--- a/atop.daily
18+++ b/atop.daily
19@@ -1,4 +1,4 @@
20-#!/bin/bash
21+#!/bin/sh
22
23 CURDAY=`date +%Y%m%d`
24 LOGPATH=/var/log/atop
25@@ -16,7 +16,7 @@ then
26
27 while ps -p `cat $PIDFILE` > /dev/null
28 do
29- let CNT+=1
30+ CNT=$((CNT+1))
31
32 if [ $CNT -gt 5 ]
33 then