[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Having problems with my (newly created) debian package



Jeremy Higgs <jhiggs@iprsystems.com> wrote:
>/etc/init.d/firewall: [: =: unary operator expected

># Source networking configuration.
>. /etc/network/options
>
># Check that networking is up.
>[ ${NETWORKING} = "no" ] && exit 0

Er. Debian doesn't use the same init script setup as Red Hat, you know,
and therefore scripts written for RH usually have to be modified. In
this case, the NETWORKING environment variable is not defined, so this
evaluates to '[  = "no" ]'. Double quotes around ${NETWORKING} would
help, but it's really a redundant test.

Your best bet would probably be to look at the init.d script that
dh_make installs by default (you'll find it in
/usr/share/debhelper/dh_make/debian/init.d.ex) and modify that to suit
your circumstances, rather than trying to rewrite the existing script
for the Debian setup.

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: