checkwronglinks: add a check for var/run/* in rootfiles.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 17 Jul 2014 04:59:37 +0000 (06:59 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 17 Jul 2014 04:59:37 +0000 (06:59 +0200)
tools/checkwronginitlinks

index 6f001c0fe4e2b517e8e33ab02ffe7694fe5c7bf9..65fc946b68e7b8c83e52d9be3309fdc4ca7821d0 100755 (executable)
@@ -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