mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Add rootfile check for hardcoded machine type.
This commit is contained in:
2
make.sh
2
make.sh
@@ -978,7 +978,7 @@ build)
|
||||
|
||||
cd $BASEDIR
|
||||
tools/checknewlog.pl
|
||||
tools/checkwronginitlinks
|
||||
tools/checkrootfiles
|
||||
cd $PWD
|
||||
|
||||
beautify build_end
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007-2013 IPFire Team info@ipfire.org #
|
||||
# Copyright (C) 2007-2015 IPFire Team info@ipfire.org #
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
@@ -32,3 +32,17 @@ if [ "${?}" == "0" ]; then
|
||||
grep -r "^var/run//*" ./config/rootfiles/
|
||||
echo "Comment this and create it at initskript if needed !"
|
||||
fi
|
||||
|
||||
grep -r "/i586" ./config/rootfiles/ --exclude gcc --exclude-dir oldcore >/dev/null 2>&1
|
||||
if [ "${?}" == "0" ]; then
|
||||
echo "Error! '/i586' in rootfiles files found!"
|
||||
grep -r "/i586" ./config/rootfiles/ --exclude gcc --exclude-dir oldcore
|
||||
echo "Replace by MACHINE !"
|
||||
fi
|
||||
|
||||
grep -r "/armv5tel" ./config/rootfiles/ --exclude gcc --exclude-dir oldcore >/dev/null 2>&1
|
||||
if [ "${?}" == "0" ]; then
|
||||
echo "Error! '/armv5tel' in rootfiles files found!"
|
||||
grep -r "/armv5tel" ./config/rootfiles/ --exclude gcc --exclude-dir oldcore
|
||||
echo "Replace by MACHINE !"
|
||||
fi
|
||||
Reference in New Issue
Block a user