mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Add support for packages that require X.
Checks if xserver-xorg is installed to determine whether or not to install the 'X' family of packages.
This commit is contained in:
@@ -13,6 +13,8 @@ if [ ! -d $BASEDIR ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
HAVE_X=`dpkg-query -s xserver-xorg | grep -c 'Status.*installed'`
|
||||||
|
|
||||||
function prerequisites {
|
function prerequisites {
|
||||||
# Prerequisites require git
|
# Prerequisites require git
|
||||||
if ! which git > /dev/null ; then
|
if ! which git > /dev/null ; then
|
||||||
@@ -158,6 +160,7 @@ function install_apt_pkgs {
|
|||||||
( echo "Can't run apt-get commands" >&2 && \
|
( echo "Can't run apt-get commands" >&2 && \
|
||||||
return 1 )
|
return 1 )
|
||||||
run_as_root apt-get -y install `cat ${BASEDIR}/packages`
|
run_as_root apt-get -y install `cat ${BASEDIR}/packages`
|
||||||
|
(( $HAVE_X )) && run_as_root apt-get -y install `cat ${BASEDIR}/packages.X`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
packages
4
packages
@@ -11,3 +11,7 @@ curl
|
|||||||
strace
|
strace
|
||||||
ltrace
|
ltrace
|
||||||
traceroute
|
traceroute
|
||||||
|
tshark
|
||||||
|
tcpdump
|
||||||
|
gnupg-curl
|
||||||
|
gdb
|
||||||
|
|||||||
4
packages.X
Normal file
4
packages.X
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
fonts-inconsolata
|
||||||
|
wireshark
|
||||||
|
keepassx
|
||||||
|
vim-gtk
|
||||||
Reference in New Issue
Block a user