You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
548 B

#!/bin/bash
apt-get remove --yes vim* grub* debconf-i18n installation-report >>$OUTPUT 2>&1
if [[ $DISTRIBUTION_TYPE != "ubuntu" ]]; then
cd /tmp
apt -y update >>$OUTPUT 2>&1
apt-get download acpi-support >>$OUTPUT 2>&1
dpkg -x acpi-support*.deb /tmp/acpisupport >>$OUTPUT 2>&1
if [ -L "/lib" ]; then
mkdir -p /tmp/acpisupport/usr/lib
(cd /tmp/acpisupport/lib && cp --parents -afr * /tmp/acpisupport/usr/lib)
rm -rf /tmp/acpisupport/lib
fi
cd /tmp/acpisupport
cp -aR * / >>$OUTPUT 2>&1
fi