Revize 2d5f1ecd
Přidáno uživatelem Ondřej Fibich před téměř 11 roky(ů)
deb/changelog | ||
---|---|---|
freenetis-dhcp (0.1.3) stable; urgency=hight
|
||
* Improoves DEB package condition
|
||
* Adds support for version displaying
|
||
-- Ondrej Fibich <ondrej.fibich@gmail.com> Thu, 16 Jan 2014 18:16:51 +0100
|
||
|
||
freenetis-dhcp (0.1.2) stable; urgency=hight
|
||
* Adds dependency for killall
|
||
* Adds support for lenny
|
freenetis-dhcp-sync.rsc | ||
---|---|---|
#######################################################################################################
|
||
# #
|
||
# Author: Michal Kliment #
|
||
# Description: This script regenerate DHCP server from FreenetIS #
|
||
# #
|
||
# Version: 0.1.1 #
|
||
# #
|
||
#######################################################################################################
|
||
################################################################################
|
||
# #
|
||
# Author: Michal Kliment #
|
||
# Description: This script regenerate DHCP server from FreenetIS #
|
||
# #
|
||
# Version: 0.1.3 #
|
||
# #
|
||
################################################################################
|
||
|
||
########################################## CONFIG VALUES ##############################################
|
||
############ CONFIG VALUES #####################################################
|
||
|
||
# Base PATH_FN to running FreenetIS instance
|
||
:global PATHFN "http://localhost/freenetis"
|
||
... | ... | |
# Forced download
|
||
:global FORCED 0
|
||
|
||
######################################## SCRIPT - DO NOT CHANGE! ######################################
|
||
############ SCRIPT - DO NOT CHANGE! ###########################################
|
||
|
||
# First run with forced download
|
||
:if ([:len [/file find name="dhcp.rsc"]] = 0) do={
|
||
... | ... | |
:delay 3
|
||
|
||
# Run script
|
||
import dhcp.rsc
|
||
import dhcp.rsc
|
freenetis-dhcp-sync.sh | ||
---|---|---|
# Description: This script generates config file of ISC DHCP server #
|
||
# from FreenetIS #
|
||
# #
|
||
# Version: 0.1.1 #
|
||
# Version: 0.1.3 #
|
||
# #
|
||
################################################################################
|
||
|
||
# Version
|
||
VERSION="0.1.3"
|
||
|
||
# Variables
|
||
CONFIG=/etc/freenetis/freenetis-dhcp.conf
|
||
CUSTOM_DHCP_CONF=/etc/dhcp/dhcp.conf.custom
|
||
FORCED=1
|
||
|
||
# Vesion info? Only possible arg.
|
||
if [ $# -eq 1 ]; then
|
||
if [ "$1" == "version" ]; then
|
||
echo "$VERSION"
|
||
exit 0
|
||
fi
|
||
fi
|
||
|
||
# Load variables
|
||
if [ -e $CONFIG ]; then
|
||
. $CONFIG || true
|
freenetis-dhcp.init.sh | ||
---|---|---|
fi
|
||
}
|
||
|
||
version_dhcp ()
|
||
{
|
||
VERSION=`"$DHCP_SYNCFILE" version 2>/dev/null`
|
||
|
||
echo $VERSION
|
||
}
|
||
|
||
usage_dhcp ()
|
||
{
|
||
echo "usage : `echo $0` (start|stop|restart|status|help)"
|
||
... | ... | |
echo " stop - stops synchronization of DHCP"
|
||
echo " restart - restarts synchronization of DHCP"
|
||
echo " status - returns current state of DHCP synchronization"
|
||
echo " version - prints version"
|
||
echo " help - prints help for DHCP synchronization"
|
||
}
|
||
|
||
... | ... | |
stop_dhcp
|
||
exit 0
|
||
;;
|
||
|
||
version)
|
||
version_dhcp
|
||
exit 0
|
||
;;
|
||
|
||
status)
|
||
status_dhcp
|
Také k dispozici: Unified diff
Release 0.1.3. Adds support for getting of version (fixes #639).