summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/update/trans
diff options
context:
space:
mode:
Diffstat (limited to 'files/common/etc/fsm/update/trans')
-rwxr-xr-xfiles/common/etc/fsm/update/trans/default.enter5
-rwxr-xr-xfiles/common/etc/fsm/update/trans/scheduled-applying.trans6
-rwxr-xr-xfiles/common/etc/fsm/update/trans/scheduled.enter9
-rwxr-xr-xfiles/common/etc/fsm/update/trans/scheduled.leave9
4 files changed, 29 insertions, 0 deletions
diff --git a/files/common/etc/fsm/update/trans/default.enter b/files/common/etc/fsm/update/trans/default.enter
new file mode 100755
index 0000000..ffdb026
--- /dev/null
+++ b/files/common/etc/fsm/update/trans/default.enter
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+. ../common.sh
+
+CurState=$2
+GS_update
diff --git a/files/common/etc/fsm/update/trans/scheduled-applying.trans b/files/common/etc/fsm/update/trans/scheduled-applying.trans
new file mode 100755
index 0000000..928d9eb
--- /dev/null
+++ b/files/common/etc/fsm/update/trans/scheduled-applying.trans
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+. ../common.sh
+
+(echo "I would have called: sysupgrade $FwDst"
+ date
+ echo) > /tmp/updatophilie \ No newline at end of file
diff --git a/files/common/etc/fsm/update/trans/scheduled.enter b/files/common/etc/fsm/update/trans/scheduled.enter
new file mode 100755
index 0000000..7488570
--- /dev/null
+++ b/files/common/etc/fsm/update/trans/scheduled.enter
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+. ../common.sh
+
+AckTime=$TargetTime
+CurState=$2
+GS_update
+
+# TODO: may be increase gossip frequency to allow faster updates
+# despite packet loss and queue overflows in hbbpd \ No newline at end of file
diff --git a/files/common/etc/fsm/update/trans/scheduled.leave b/files/common/etc/fsm/update/trans/scheduled.leave
new file mode 100755
index 0000000..69826fe
--- /dev/null
+++ b/files/common/etc/fsm/update/trans/scheduled.leave
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+. ../common.sh
+
+AckTime=""
+
+# disable gossip during update - the new state is broadcasted during
+# *.enter immediately
+TblIf=
+GS_update
contact: Jan Huwald // Impressum