2011-11-24 16:03:15 +01:00
|
|
|
#!/bin/bash
|
2012-01-04 00:03:35 +01:00
|
|
|
case $BUILD_BASENAME in
|
|
|
|
*ppc*)
|
|
|
|
if test $(getconf PAGESIZE) -ne 65536; then
|
|
|
|
echo "Error: wrong build host, PAGESIZE must be 65536"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*ia64*)
|
|
|
|
if test $(getconf PAGESIZE) -ne 65536; then
|
|
|
|
echo "Error: wrong build host, PAGESIZE must be 65536"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
2011-11-24 16:03:15 +01:00
|
|
|
esac
|
2012-01-04 00:03:35 +01:00
|
|
|
|
2016-11-11 10:27:16 +01:00
|
|
|
exec_shield=0
|
|
|
|
if test -e /proc/sys/kernel/exec-shield; then
|
|
|
|
read -t 1 exec_shield < /proc/sys/kernel/exec-shield
|
|
|
|
fi
|
|
|
|
if test $exec_shield -ne 0 ; then
|
|
|
|
echo Sorry, Execution Shield exists and is enabled 1>&2
|
|
|
|
exit 1
|
|
|
|
fi
|
2012-01-04 00:03:35 +01:00
|
|
|
exit 0
|
|
|
|
|