autoremove; better comment
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# pkg_install4ubuntu_lkp.sh
|
||||
# ***************************************************************
|
||||
# This program is part of the source code released for the book
|
||||
# "Linux Kernel Programming 2E"
|
||||
# "Linux Kernel Programming" 2E
|
||||
# (c) Author: Kaiwan N Billimoria
|
||||
# Publisher: Packt
|
||||
# GitHub repository:
|
||||
@@ -26,6 +26,7 @@ runcmd()
|
||||
|
||||
#--- 'main'
|
||||
echo "$(date): beginning installation of required packages..."
|
||||
# ASSUMPTION! root partition / is on /dev/sda1
|
||||
spc1=$(df|grep sda1|awk '{print $3}')
|
||||
echo "Disk space in use currently: ${spc1} KB"
|
||||
|
||||
@@ -70,4 +71,6 @@ groups |grep -q -w vboxsf || runcmd sudo usermod -G vboxsf -a ${USER}
|
||||
|
||||
spc2=$(df|grep sda1|awk '{print $3}')
|
||||
echo "Difference : ($spc2 - $spc1) : $((spc2-spc1)) KB"
|
||||
|
||||
sudo apt autoremove
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user