Skip to content

Commit f0f7e1b

Browse files
authored
Update UBUNTU_updatecore
1 parent b212de2 commit f0f7e1b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

UBUNTU_updatecore

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
#!/bin/bash
2+
echo ""
3+
echo "#############################################"
4+
echo "# Install latest kernel and backup old ones #"
5+
echo "#############################################"
6+
echo ""
27
apt-get install linux-generic -qy;apt-get install linux-headers-generic -qy;apt-get install linux-headers-generic-pae -qy;apt-get install linux-image-generic -qy
38
ls -rt /boot/vmlinuz-* | head -n -2 | sed 's@vmlinuz-@linux-image-@g' | sed 's@/boot/@@' | xargs -I {} apt-get remove -y {}
9+
echo ""
10+
echo "############################"
11+
echo "# Install security updates #"
12+
echo "############################"
13+
echo ""
14+
unattended-upgrades -d

0 commit comments

Comments
 (0)