#!/bin/sh cat /dev/null > /tmp/SeTnewtag dialog --title "Select pkgs from virtualization(Virtualization related pkgs)" --checklist "Select packages to install from virtualization series. Use cursor up/down to select the package, mark(*) by space key. Push Enter to start install." 24 72 15 "cgroupfs_mount" "scripts for setting up cgroup(v1)" "on" \ "lxc" "LXC" "on" \ "lxcfs" "LXCFS" "on" \ 2> /tmp/SeTpkgs if [ $? = 1 -o $? = 255 ]; then rm -f /tmp/SeTpkgs > /tmp/SeTnewtag for pkg in cgroupfs_mount lxc lxcfs ; do echo "$pkg: SKP" >> /tmp/SeTnewtag done exit fi cat /dev/null > /tmp/SeTnewtag for PACKAGE in cgroupfs_mount lxc lxcfs ; do if grep "$PACKAGE" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then echo "$PACKAGE: ADD" >> /tmp/SeTnewtag else echo "$PACKAGE: SKP" >> /tmp/SeTnewtag fi done rm -f /tmp/SeTpkgs