Project

General

Profile

« Previous | Next » 

Revision 7e3ca5c2

Added by Michael Moll over 10 years ago

fixes #3874 - extend paths for FreeBSD support

View differences:

lib/proxy/dhcp/server/isc.rb
require 'time'
module Proxy::DHCP
class ISC < Server
include Proxy::Util
def initialize options
super(options[:name])
......
def omcmd cmd, msg=nil
if cmd == "connect"
@om = IO.popen("/bin/sh -c '/usr/bin/omshell 2>&1'", "r+")
om_binary = which("omshell")
@om = IO.popen("/bin/sh -c '#{om_binary} 2>&1'", "r+")
@om.puts "key #{SETTINGS.dhcp_key_name} \"#{SETTINGS.dhcp_key_secret}\"" if SETTINGS.dhcp_key_name and SETTINGS.dhcp_key_secret
@om.puts "server #{name}"
@om.puts "connect"

Also available in: Unified diff