home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 January / CHIPCD1_98.iso / software / pelne / monkey / mlinux06.a01 / SBIN / INSTPKG < prev    next >
Text File  |  1997-02-09  |  581b  |  22 lines

  1. #!/bin/sh
  2.  
  3. /sbin/umssync -v- / 2> /dev/null
  4. if [ -d /install ]; then
  5.   # There can be more than 1 package to install
  6.   /sbin/umssync -v- /install 2> /dev/null
  7.   cd /install
  8.   for file in * ; do
  9.     if [ -r $file ]; then
  10.       echo "Found package $file, installing...."
  11.       ( cd / ; tar xzf install/$file ; rm -f install/$file )
  12.       if [ -x /install/`echo $file | sed 's/\.tgz//'`.sh ]; then
  13.         ( cd / ; . /install/`echo $file | sed 's/\.tgz//'`.sh )
  14.         rm -f /install/`echo $file | sed 's/\.tgz//'`.sh
  15.       fi
  16.     fi
  17.   done
  18.   cd -
  19.   /bin/rm -rf /install
  20. fi
  21. ldconfig
  22.