chiark / gitweb /
hostside: serial-irq-priority: new script run from bessar's init
authorIan Jackson <ian@davenant.greenend.org.uk>
Sun, 9 Jan 2011 18:36:56 +0000 (18:36 +0000)
committerIan Jackson <ian@davenant.greenend.org.uk>
Sun, 9 Jan 2011 18:36:56 +0000 (18:36 +0000)
hostside/serial-irq-priority [new file with mode: 0755]

diff --git a/hostside/serial-irq-priority b/hostside/serial-irq-priority
new file mode 100755 (executable)
index 0000000..aee45b4
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -ex
+exec 4</dev/railway
+
+ssd=`start-stop-daemon --stop -t -u root -n irq/4-serial`
+case "$ssd" in
+"Would send signal 15 to "*.) ;;
+*) echo >&2 "start-stop-daemon said $ssd ?"; exit 1;;
+esac
+pid="${ssd##* }"
+pid="${pid%.}"
+
+echo chrt -p 55 $pid
+
+exec sleep 1000000000