#!/bin/sh # #Heel simpel scriptje om de perl scripts te laten draaien over alle #config files # config_dir="/home/genesis/nodes" if [ $2 ]; then nodes=$2 else nodes=`find $config_dir/*/wleiden.conf | grep -e 'CNode'` fi case $1 in cleanconfigs) perl $main_path/configcleaner.pl $nodes ;; help) echo "$0 cleanconfigs, Cleanup all configs" echo "$0 help, you are reading this right now" ;; *) echo "Usage $0 [cleanconfigs]" ;; esac