-#!/bin/bash
+#!/bin/sh
# Conditionally run obnam.
#
WORKDIR=/var/lib/etc-obnam
# Check that the host is local, support both IPv4 and IPv6.
-function check_host() {
+check_host() {
local type=$1
if [ "x$type" != "xA" -a "x$type" != "xAAAA" ]
then
# Grab enough details to hopefully be able to reconstuct the installed
# packages.
-function capture_debconf_info() {
+capture_debconf_info() {
# Keep a list of the installed files
dpkg --get-selections > $WORKDIR/installed.packages.new
if [ $? -eq 0 ]; then