diff options
author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/packages/initscripts/initscripts-1.0/openzaurus | |
download | openembedded-core-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz openembedded-core-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.bz2 openembedded-core-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.xz openembedded-core-4b46c1f6e891b1ddd5968536440b888661fade3e.zip |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/initscripts/initscripts-1.0/openzaurus')
-rwxr-xr-x | openembedded/packages/initscripts/initscripts-1.0/openzaurus/checkversion | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/openembedded/packages/initscripts/initscripts-1.0/openzaurus/checkversion b/openembedded/packages/initscripts/initscripts-1.0/openzaurus/checkversion new file mode 100755 index 000000000..0c8be4fc2 --- /dev/null +++ b/openembedded/packages/initscripts/initscripts-1.0/openzaurus/checkversion @@ -0,0 +1,31 @@ +#!/bin/sh + +found=`cat /proc/version | cut -d ' ' -f3` +echo "$found" | grep -q "snapshot" && exit 0 + +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 |