From 261624fb991083f07246e2d3d7a24b2d1ff18c35 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 17 Jul 2014 06:59:37 +0200 Subject: [PATCH] checkwronglinks: add a check for var/run/* in rootfiles. --- tools/checkwronginitlinks | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/checkwronginitlinks b/tools/checkwronginitlinks index 6f001c0fe4..65fc946b68 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 -- 2.39.5