diff options
Diffstat (limited to 'mketc.sh')
-rwxr-xr-x | mketc.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mketc.sh b/mketc.sh new file mode 100755 index 000000000..7b86a69e4 --- /dev/null +++ b/mketc.sh | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/bin/bash | ||
2 | rm -fr .etc | ||
3 | mkdir .etc | ||
4 | |||
5 | result=$(echo $1 | sed 's/\//\\\//g') | ||
6 | echo $result | ||
7 | |||
8 | FILES=`ls etc/*.profile` | ||
9 | for file in $FILES | ||
10 | do | ||
11 | sed "s/\/etc/$result/g" $file > .$file | ||
12 | done | ||
13 | |||
14 | FILES=`ls etc/*.inc` | ||
15 | for file in $FILES | ||
16 | do | ||
17 | sed "s/\/etc/$result/g" $file > .$file | ||
18 | done | ||