# the makefile doesn't ln -sf so it might fail.
if [ -f $INSTALL_ROOT/sbin/ifdown ]; then
  rm -f $INSTALL_ROOT/sbin/ifdown
fi &&

BASEDIR=$INSTALL_ROOT default_install &&

# install the man pages to smart places
cp *.8.gz $INSTALL_ROOT/usr/share/man/man8/. &&
cp *.5.gz $INSTALL_ROOT/usr/share/man/man5/. &&

# install the documentation type things
mkdir -p $INSTALL_ROOT/usr/share/doc/$SPELL &&
cp -va examples $INSTALL_ROOT/usr/share/doc/$SPELL/. &&

# make the default directories
mkdir -p $INSTALL_ROOT/etc/network                 &&
mkdir -p $INSTALL_ROOT/etc/network/run             &&
mkdir -p $INSTALL_ROOT/etc/network/if-post-down.d  &&
mkdir -p $INSTALL_ROOT/etc/network/if-pre-up.d     &&
mkdir -p $INSTALL_ROOT/etc/network/if-down.d       &&
mkdir -p $INSTALL_ROOT/etc/network/if-up.d
