forked from remote/site-ffmuc
committed by
Franz Pletz
parent
98b6602c57
commit
6b75ac27ac
10
extra/make_siteconfs.sh
Executable file
10
extra/make_siteconfs.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
[ -e new ] || mkdir new
|
||||
|
||||
cat stadtteile_idx.txt|grep -e '^[^#]'|grep -v LK_|while IFS=, read nr id desc port; do cp ffmuc.conf new/ffmuc_$id.conf; done
|
||||
cat stadtteile_idx.txt|grep -e '^[^#]'|grep LK_|while IFS=, read nr id desc port; do cp ffmuc_umland.conf new/ffmuc_$id.conf; done
|
||||
|
||||
cat stadtteile_idx.txt|grep -e '^[^#]'|while IFS=, read nr id desc seg_id port; do ( echo "# processing ffmuc_$id.conf"; cat new/ffmuc_$id.conf |sed -e "s/port 100[01][0-9]/port $port/" |sed -e "s/.*site_code.*/ site_code = 'ffmuc_$id',/g"|sed -e "s/.*site_name.*/ site_name = 'Freifunk München - $desc',/g" > new/ffmuc_$id.conf.new; mv new/ffmuc_$id.conf.new new/ffmuc_$id.conf); done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user