Fix install packages with r2pm
This commit is contained in:
parent
6e8c69a695
commit
11c8219f83
13
sys/menu.sh
13
sys/menu.sh
|
@ -82,15 +82,16 @@ PackagesInstall() {
|
|||
PLUGINS="`r2pm -lu`"
|
||||
ARGS=""
|
||||
for a in ${PLUGINS} ; do
|
||||
ARGS="${ARGS} $a . on"
|
||||
ARGS="${ARGS} $a . off"
|
||||
done
|
||||
dialog --radiolist "Select packages to install" 0 0 0 ${ARGS} 2> .nconfig.tmp
|
||||
dialog --checklist "Select packages to install" 0 0 0 ${ARGS} 2> .nconfig.tmp
|
||||
OPT=$(<.nconfig.tmp)
|
||||
echo
|
||||
echo "Selected ${OPT}"
|
||||
if [ -n "${OPT}" -a -f "${OPT}" ]; then
|
||||
cp -f ${OPT} plugins.cfg
|
||||
./configure-plugins
|
||||
if [ -n "${OPT}" ]; then
|
||||
for a in ${OPT} ; do
|
||||
r2pm -i "$a"
|
||||
sleep 1
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue