Changeset 914 in MondoRescue for trunk/contrib/mkcd
- Timestamp:
- Nov 2, 2006, 2:00:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contrib/mkcd/setup
r355 r914 150 150 fi 151 151 152 res=`cat /etc/issue.net 2>/dev/null | fgrep -i turbolinux | head -n1`152 res=`cat /etc/issue.net 2>/dev/null | grep -i turbolinux | head -n1` 153 153 if [ "$res" != "" ] ; then 154 154 echo "$res" … … 156 156 fi 157 157 158 for fname in `find /etc -maxdepth 1 | fgrep release` /etc/issue.net ; do159 res=`cat $fname 2>/dev/null | fgrep -i "linux" | head -n1 | tr -s '\t' ' '`158 for fname in `find /etc -maxdepth 1 | grep release` /etc/issue.net ; do 159 res=`cat $fname 2>/dev/null | grep -i "linux" | head -n1 | tr -s '\t' ' '` 160 160 [ "$res" = "" ] && res=`cat $fname |head -n1 | tr -s '\t' ' '` 161 161 if [ "$res" != "" ] ; then … … 230 230 [ "`echo "$i" | grep mindi`" ] && qq=head || qq=tail 231 231 j=`find $1/ -type f -maxdepth 1 | grep "$i" | $qq -n1` 232 [ ! "$j" ] && j=`find RPMS/ -type f -maxdepth 1 | fgrep"$i" | $qq -n1`232 [ ! "$j" ] && j=`find RPMS/ -type f -maxdepth 1 | grep -F "$i" | $qq -n1` 233 233 if [ ! "$j" ] ; then 234 234 echo "Looking for $i" >> /dev/stderr … … 254 254 if echo "$j" | grep "\-$blah" &> /dev/null ; then 255 255 k=`echo "$j" | cut -d'-' -f1,2` 256 if echo "$j" | grep - x "[A-Z,a-Z]*-[A-Z,a-Z]*-[A-Z,a-z]*-.*"&> /dev/null ; then256 if echo "$j" | grep -E '^[A-Z,a-Z]*-[A-Z,a-Z]*-[A-Z,a-z]*-.*$' &> /dev/null ; then 257 257 k=`echo "$j" | cut -d'-' -f1,2,3` 258 258 fi … … 279 279 # echo "banner = $banner" >> /dev/stderr 280 280 for i in $banner ; do 281 j=`echo $i | grep - x "[v|V][0-9]+*.*"`282 [ ! "$j" ] && j=`echo $i | grep - x "[0-9]+*.*"`283 echo "$j" | grep - x "[0-9]*)"> /dev/null && continue281 j=`echo $i | grep -E '^[v|V][0-9]+*.*$'` 282 [ ! "$j" ] && j=`echo $i | grep -E '^[0-9]+*.*$'` 283 echo "$j" | grep -E '^[0-9]*)$' > /dev/null && continue 284 284 [ "$j" ] && res=`echo $j | sed s/v// | sed s/V//` 285 285 done … … 610 610 611 611 StrStr() { 612 [ "`echo "$1" | fgrep -i "$2"`" ] && return 0 || return 1612 [ "`echo "$1" | grep -Fi "$2"`" ] && return 0 || return 1 613 613 } 614 614 … … 674 674 echo -en "Do you want to install the (S)table or the (D)evelopment branch of Mondo? " 675 675 read ch 676 if [ "`echo "development" | fgrep -i "$ch"`" ] ; then676 if [ "`echo "development" | grep -Fi "$ch"`" ] ; then 677 677 MY_BRANCH=$DEVEL_BRANCH 678 678 MINDI_BRANCH=1.1 … … 703 703 echo -en "Shall I do that (y/n)? " 704 704 read ch 705 if [ "`echo "YESyesYes" | fgrep"$ch"`" ] ; then705 if [ "`echo "YESyesYes" | grep -F "$ch"`" ] ; then 706 706 distro=RHT 707 707 version=7.2
Note:
See TracChangeset
for help on using the changeset viewer.