Browse Source

Rene Rebe:

* added a check for 'sed -i' to Check-System




git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3156 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 22 years ago
parent
commit
7778f6f5ff
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      scripts/Check-System

+ 10
- 1
scripts/Check-System

@ -74,7 +74,7 @@ case $BASH_VERSION in
echo "You need to update 'bash' to at least version 2.05b." echo "You need to update 'bash' to at least version 2.05b."
found_error=1 found_error=1
esac esac
x="`mktemp -p /tmp 2> /dev/null`" x="`mktemp -p /tmp 2> /dev/null`"
if [ -z "$x" -o ! -f "$x" ] ; then if [ -z "$x" -o ! -f "$x" ] ; then
@ -87,6 +87,15 @@ else
rm -f "$x" rm -f "$x"
fi fi
if [ -z "`type -p sed`" ] || ! sed -i s/a/b/ < /dev/null 2> /dev/null
then
echo
echo "Paranoia Check: Program 'sed' not found or too old!"
echo "You need a 'sed' installed which does know about the -i option"
echo "(GNU/sed since 2001-09-25). Install the latest sed version."
found_error=1
fi
if [ $found_error -ne 0 ] ; then if [ $found_error -ne 0 ] ; then
echo echo
echo "Paranoia Check found errors -> not doing anything." echo "Paranoia Check found errors -> not doing anything."

Loading…
Cancel
Save