#!/bin/sh

# Clean up from any previous install or remove
# Note it's OK if they don't exist
rm -f "$PKG_INSTALL_ROOT"/etc/rc3.d/???swupboots

if test X"$PKG_INSTALL_ROOT" = X; then

    /etc/init.d/swupboots stop
else

    # run the script on system startup, with "stop" argument
    ln "$PKG_INSTALL_ROOT"/etc/init.d/swupboots \
          "$PKG_INSTALL_ROOT"/etc/rc3.d/K99swupboots
fi

