|
@@ -2646,7 +2646,7 @@ platform )
|
|
|
v_kern=`echo "${UNAME_RELEASE}" |\
|
|
v_kern=`echo "${UNAME_RELEASE}" |\
|
|
|
sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/'`
|
|
sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/'`
|
|
|
v_libc=`(strings /lib/libc.so.* | grep '^GLIBC_' | sed -e 's/^GLIBC_//' |\
|
|
v_libc=`(strings /lib/libc.so.* | grep '^GLIBC_' | sed -e 's/^GLIBC_//' |\
|
|
|
- sort -n | tail -1 | sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/') 2>/dev/null`
|
|
|
|
|
|
|
+ sort -n | sed -n -e '$p' | sed -e 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/') 2>/dev/null`
|
|
|
ST="GNU/<Linux >${v_libc}/<${v_kern}>"
|
|
ST="GNU/<Linux >${v_libc}/<${v_kern}>"
|
|
|
if [ -f /etc/lsb-release ]; then
|
|
if [ -f /etc/lsb-release ]; then
|
|
|
eval `( . /etc/lsb-release
|
|
eval `( . /etc/lsb-release
|
|
@@ -2666,7 +2666,7 @@ platform )
|
|
|
[ ".${tagfile}" = .x ] && continue
|
|
[ ".${tagfile}" = .x ] && continue
|
|
|
[ ! -f "/etc/${tagfile}" ] && continue
|
|
[ ! -f "/etc/${tagfile}" ] && continue
|
|
|
n=`echo ${tagfile} | sed -e 's/[_-]release$//' -e 's/[_-]version$//'`
|
|
n=`echo ${tagfile} | sed -e 's/[_-]release$//' -e 's/[_-]version$//'`
|
|
|
- v=`(grep VERSION /etc/${tagfile}; cat /etc/${tagfile}) | grep '[0-9]' | head -1 |\
|
|
|
|
|
|
|
+ v=`(grep VERSION /etc/${tagfile}; cat /etc/${tagfile}) | grep '[0-9]' | sed -e 'q' |\
|
|
|
sed -e 's/^/#/' \
|
|
sed -e 's/^/#/' \
|
|
|
-e 's/^#[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/' \
|
|
-e 's/^#[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$/\1/' \
|
|
|
-e 's/^#[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/' \
|
|
-e 's/^#[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/' \
|
|
@@ -2825,7 +2825,7 @@ platform )
|
|
|
alpha ) AP="Alpha" ;;
|
|
alpha ) AP="Alpha" ;;
|
|
|
esac
|
|
esac
|
|
|
alpha_type=`(/usr/sbin/psrinfo -v) 2>/dev/null |\
|
|
alpha_type=`(/usr/sbin/psrinfo -v) 2>/dev/null |\
|
|
|
- sed -n -e 's/^.*The alpha \([^ ][^ ]*\).*processor.*$/\1/p' | head -n 1`
|
|
|
|
|
|
|
+ sed -n -e 's/^.*The alpha \([^ ][^ ]*\).*processor.*$/\1/p' | sed -e 'q'`
|
|
|
AT="${AP}${alpha_type}"
|
|
AT="${AP}${alpha_type}"
|
|
|
AC="${AP}"
|
|
AC="${AP}"
|
|
|
# determine system
|
|
# determine system
|