source:
drbl-virt/sbin/add_value
@
185
Last change on this file since 185 was 185, checked in by rock, 14 years ago | |
---|---|
File size: 501 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | # Program: |
3 | # Add ip & hostname($1) to $2 |
4 | # $1=/opt/drbl-virt/etc/IP_VM_ethX |
5 | # $2=/etc/drbl/IP_HOST_TABLE |
6 | # Author: |
7 | # rock@nchc.org.tw |
8 | # Version: |
9 | # 1.0 |
10 | # History: |
11 | # 2010/06/07 Rock First release (1.0) |
12 | |
13 | |
14 | # delete |
15 | sed -i "/# drbl-virt $eth add/d" $2 |
16 | sed -i "/# drbl-virt $eth end/d" $2 |
17 | |
18 | # |
19 | echo "# Crawlzilla $eth add" >> $2 |
20 | cat $1 >> $2 |
21 | echo "# Crawlzilla $eth end" >> $2 |
Note: See TracBrowser
for help on using the repository browser.