source: hybrid/branches/releng-9.0/nanobsd/files/tools/syslogd_flag.sh@ 10409

Last change on this file since 10409 was 10409, checked in by rick, 13 years ago

Allow fetching the dhcpd.conf files and make sure to diff the proper way...

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 173 bytes
Line 
1#!/bin/sh
2# Set hostname for syslogd -b flag
3
4HOST=`cat /etc/rc.conf.local | grep hostname | cut -d'"' -f2`
5sed -i "" -e /syslogd_flags=/s/localhost/${HOST}/ /etc/rc.conf
6
7
Note: See TracBrowser for help on using the repository browser.