Thank you very much for your reply.
My jetson_clocks.sh firstly run check_uptime() which will continue running the following program when the value of “/proc/uptime” is greater than 90.
Can I commit out the check_uptime in the function of main?
if [ -e “/proc/uptime” ]; then
cat /proc/uptime | cut -d '.' -f1
if [ $((uptime)) -lt 90 ]; then
printf "Error: Please run the script after $((90 - uptime)) Seconds, \
\notherwise ubuntu init script may override the clock settings!\n"
printf “Warning: Could not check system uptime. Please make sure that you run the script 90 Seconds after bootup,
\notherwise ubuntu init script may override the clock settings!\n”
whoami != root ] && echo Error: Run this script(0\) as a root user && exit 1