#!/bin/sh
#
# aryzhov@spasu.net
# install Remote System Control package
#
[ -z "$SID" ] && SID=/tmp/install_config
[ X$SubrIsRead = XYes ] || . $SID/Scripts/Misc/!Includes/Subroutines
[ X$VarsAreSet = XYes ] || SetJVars
SetRootOpts ; [ X$ROOT != X/ ] && exec Chroot_Script $0 $*

echo "\n\n=== Installing RSC ===\n"

PKGDIR=$JS_PKGS_DIR/RSC; (cd $PKGDIR || StartShell)

PKGLIST="
  SUNWrsc
"

MakeAdminFile

for PKG in $PKGLIST; do
  pkgadd -nM -a $PKGADMIN_FILE $JS_ROOT_OPTS -d $PKGDIR $PKG 2>&1 | grep "Installation of"
done
