source: drbl-virt/sbin/add_value @ 186

Last change on this file since 186 was 185, checked in by rock, 14 years ago

Modify: the same

File size: 501 bytes
RevLine 
[185]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
15sed -i "/# drbl-virt $eth add/d" $2
16sed -i "/# drbl-virt $eth end/d" $2
17
18#
19echo "# Crawlzilla $eth add" >> $2
20cat $1 >> $2
21echo "# Crawlzilla $eth end" >> $2
Note: See TracBrowser for help on using the repository browser.