summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-12-08 15:33:30 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-12-08 15:33:30 +0000
commit7f6a17d0c0e83f973761bd4d4b26b3491994a75e (patch)
treedb9ed9882e70e3ac1f491f9fb780f0f2d4d79392
parent9388b194713a48ac5f2079c167313ac46ecd142d (diff)
make initscripts/checkversion actually sleep
BKrev: 41b71ecamjHYi76Y4MRIkWDZpS11hw
-rw-r--r--initscripts/initscripts-1.0/openzaurus/checkversion29
-rw-r--r--initscripts/initscripts_1.0.bb2
2 files changed, 30 insertions, 1 deletions
diff --git a/initscripts/initscripts-1.0/openzaurus/checkversion b/initscripts/initscripts-1.0/openzaurus/checkversion
index e69de29bb2..6c52816ec8 100644
--- a/initscripts/initscripts-1.0/openzaurus/checkversion
+++ b/initscripts/initscripts-1.0/openzaurus/checkversion
@@ -0,0 +1,29 @@
+#!/bin/sh
+found=`cat /proc/version | cut -d ' ' -f3`
+
+if [ "VERSION" != "$found" ] ; then
+ echo -e >/dev/tty1
+ echo -e "\033[31;1m ******************************************* \033[0m" >/dev/tty1
+ echo -e "\033[31;1m * \033[0mW A R N I N G ! \033[31;1m* \033[0m" >/dev/tty1
+ echo -e "\033[31;1m ******************************************* \033[0m" >/dev/tty1
+ echo >/dev/tty1
+ echo -e "\033[31;1m ******************************************* \033[0m" >/dev/tty1
+ echo -e "\033[31;1m * \033[0mYou are running the wrong kernel! \033[31;1m* \033[0m" >/dev/tty1
+ echo -e "\033[31;1m ******************************************* \033[0m" >/dev/tty1
+ echo >/dev/tty1
+ echo -e "You are running '" $found "'" >/dev/tty1
+ echo -e "I expect kernel '" VERSION "'" >/dev/tty1
+ echo >/dev/tty1
+ echo -e "\033[31;1m ******************************************* \033[0m" >/dev/tty1
+ echo -e "\033[31;1m * \033[0mRunning this combination is unsupported \033[31;1m* \033[0m" >/dev/tty1
+ echo -e "\033[31;1m ******************************************* \033[0m" >/dev/tty1
+ echo >/dev/tty1
+ echo "I will sleep for 1 minute now. Use this chance to " >/dev/tty1
+ echo "reboot the device and flash the proper kernel now! " >/dev/tty1
+ echo -e >/dev/tty1
+ echo -e "\033[31;1m ******************************************* \033[0m" >/dev/tty1
+ echo -e "\033[31;1m * \033[0mW A R N I N G ! \033[31;1m* \033[0m" >/dev/tty1
+ echo -e "\033[31;1m ******************************************* \033[0m" >/dev/tty1
+ echo >/dev/tty1
+ sleep 60
+fi
diff --git a/initscripts/initscripts_1.0.bb b/initscripts/initscripts_1.0.bb
index 3babc848b0..6ca006f5c4 100644
--- a/initscripts/initscripts_1.0.bb
+++ b/initscripts/initscripts_1.0.bb
@@ -5,7 +5,7 @@ PRIORITY = "required"
DEPENDS = "makedevs"
RDEPENDS = "makedevs"
LICENSE = "GPL"
-PR = "r22"
+PR = "r23"
SRC_URI = "file://halt \
file://ramdisk \