1
0
mirror of https://github.com/DigitalDevices/octonet.git synced 2023-10-10 13:36:52 +02:00
octonet/buildroot.octonet/board/digitaldevices/octonet/S02bootid
2015-08-05 18:52:25 +02:00

11 lines
198 B
Bash
Executable File

#!/bin/sh
case "$1" in
start)
if [ -e /config/boot.id ]; then
echo -n `(cat /config/boot.id; echo " 1 + p") | dc` > /config/boot.id
else
echo -n "0" > /config/boot.id
fi
esac