#!/bin/bash echo "Stopping $1..." ifdown $1 || true &>/dev/null echo "Starting $1..." ifup $1 || true &>/dev/null echo"System configuration update ..." llxcfg-cpkg update |sed -une "/^llxcfg-cpkg:\|^ Package /{s%^%#%;p}" echo "Rebooting DHCP if present" DHCP_INIT="dhcp3-server.." if [ -x "/etc/init.d/$DHCP_INIT" ] ; then invoke-rc.d "$DHCP_INIT" restart || true fi echo "Fixing resolvconf..." if [ -x /sbin/resolvconf ] ; then dpkg-reconfigure --frontend noninteractive resolvconf /sbin/resolvconf -u fi zero-sqlmanager -s zero-network-internal-server 1 llxcfg-cpkg update exit 0