~fajran/sedot/trunk

« back to all changes in this revision

Viewing changes to lib/init.sh

  • Committer: Fajran Iman Rusadi
  • Date: 2008-10-24 17:29:52 UTC
  • Revision ID: fajran@gmail.com-20081024172952-sblns6cu6vwx3hpg
- Remove BASE from configuration file. Now, it is retrieved from the 
  path of binary file automatically 

- Add ability to load host specific configuration file. It located at
  /etc/conf.d/hostname-fqdn.cnf

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
BASE=$( cd `dirname $0`/../; pwd )
 
3
HOST=`hostname -f`
 
4
 
 
5
. $BASE/etc/config.sh
 
6
 
 
7
[ -f $BASE/etc/conf.d/$HOST.conf ] && . $BASE/etc/conf.d/$HOST.conf
 
8
 
 
9