diff options
-rwxr-xr-x | setsched | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -12,6 +12,7 @@ if [ ! -e $ADIR ]; then | |||
12 | KERN=`uname -s -r` | 12 | KERN=`uname -s -r` |
13 | echo "Error: LITMUS^RT interface not found on $KERN!" | 13 | echo "Error: LITMUS^RT interface not found on $KERN!" |
14 | echo "Are you sure you booted the correct kernel?" | 14 | echo "Are you sure you booted the correct kernel?" |
15 | echo "Is the /proc filesystem mounted correctly?" | ||
15 | exit 1 | 16 | exit 1 |
16 | fi | 17 | fi |
17 | 18 | ||
@@ -22,6 +23,9 @@ if [ -z "$1" ]; then | |||
22 | if [ -z "$DIALOG" ]; then | 23 | if [ -z "$DIALOG" ]; then |
23 | echo "Error: The dialog utility cannot be found." | 24 | echo "Error: The dialog utility cannot be found." |
24 | echo " Please install the required package (dialog on Ubuntu)." | 25 | echo " Please install the required package (dialog on Ubuntu)." |
26 | echo " Note that you can also use setsched by passing the" | ||
27 | echo " desired scheduling plugins as a commandline argument," | ||
28 | echo " i.e., 'setsched GSN-EDF' activates GSN-EDF." | ||
25 | exit 2 | 29 | exit 2 |
26 | fi | 30 | fi |
27 | TMP=`mktemp` | 31 | TMP=`mktemp` |
@@ -31,11 +35,11 @@ if [ -z "$1" ]; then | |||
31 | --menu "Select a new plugin to run: " 15 60 6) 2> $TMP | 35 | --menu "Select a new plugin to run: " 15 60 6) 2> $TMP |
32 | OK=$? | 36 | OK=$? |
33 | clear | 37 | clear |
34 | if [ "$OK" != "0" ]; then | 38 | if [ "$OK" != "0" ]; then |
35 | exit 0; | 39 | exit 0; |
36 | fi | 40 | fi |
37 | CHOICE=`cat $TMP` | 41 | CHOICE=`cat $TMP` |
38 | rm $TMP | 42 | rm $TMP |
39 | fi | 43 | fi |
40 | 44 | ||
41 | 45 | ||
@@ -46,5 +50,6 @@ ACTIVE=`cat $ADIR` | |||
46 | 50 | ||
47 | if [ "$ACTIVE" != "$CHOICE" ]; then | 51 | if [ "$ACTIVE" != "$CHOICE" ]; then |
48 | echo "Error: Setting new plugin failed." | 52 | echo "Error: Setting new plugin failed." |
53 | echo "Are there any active real-time tasks?" | ||
49 | exit 1 | 54 | exit 1 |
50 | fi | 55 | fi |