From: Arne Fitzenreiter Date: Thu, 17 Jul 2014 04:59:37 +0000 (+0200) Subject: checkwronglinks: add a check for var/run/* in rootfiles. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=261624fb991083f07246e2d3d7a24b2d1ff18c35 checkwronglinks: add a check for var/run/* in rootfiles. --- diff --git a/tools/checkwronginitlinks b/tools/checkwronginitlinks index 6f001c0fe..65fc946b6 100755 --- a/tools/checkwronginitlinks +++ b/tools/checkwronginitlinks @@ -25,3 +25,10 @@ if [ "${?}" == "0" ]; then grep -r "^etc/init.d//*" ./config/rootfiles/ echo "Change this to 'etc/rc.d/init.d/...' !" fi + +grep -r "^var/run//*" ./config/rootfiles/ >/dev/null 2>&1 +if [ "${?}" == "0" ]; then + echo "Error! 'var/run/...' in rootfiles files found!" + grep -r "^var/run//*" ./config/rootfiles/ + echo "Comment this and create it at initskript if needed !" +fi