1
0
mirror of https://code.semirocket.science/wrapsix synced 2024-11-10 00:01:01 +02:00
wrapsix/lib/wrapper.rb

28 lines
476 B
Ruby
Raw Permalink Normal View History

#####
## WrapSix
###
#> lib/wrapper.rb
#~ WrapSix Wrapper
####
# Author: Michal Zima, 2008-2009
# E-mail: xhire@tuxportal.cz
#####
class Wrapper
def initializer
@debug = $config['debug']
end
def start
params = "#{$config['wrapper_ipv4_address']} #{$config['wrapper_ipv6_prefix']}"
params += " #{$config['wrapper_device']}" if $config['wrapper_device']
unless @debug
params += " > /dev/null"
end
system "wrapper/wrapper #{params}"
end
def exit
end
end