EvilZone
Programming and Scripting => Scripting Languages => : r33per March 12, 2012, 06:02:36 PM
-
just thought I'd share this with you all, it's just a simple script for updating tools and the kernel for backtrack and Ubuntu not really useful just saves typing :)
#!/bin/bash
echo "Updating, please wait....";
apt-get update; # sync with repo server
apt-get upgrade; # update tools
apt-get dist-upgrade; # upgrade kernel
echo "all done";
-
I should not prefer doing kernel upgrades using scripts, because sometimes you need user input, anyone else got some thoughts on this?
-
Usually Kernel update on Ubuntu with GRUB (I know with GRUB LEGACY, other (newer) don't know) after an update it asks what to do with an "old" menu.lst file. Normally I say to leave it as is and I change it myself...
So yeah, kernel updates ask for user input in some cases.
-
The script itself only actually invokes the update process after which input is required to complete it
-
This has nothing to do with ubuntu/backtrack but rather all debian based systems.
-
This has nothing to do with ubuntu/backtrack but rather all debian based systems.
Written for a ubuntu system, so he will not offer support to other debian based systems, or am i wrong?
-
Written for a ubuntu system, so he will not offer support to other debian based systems, or am i wrong?
I think it will work in any system having apt-get as package manager.
OP: you should also check for changes in grub/lilo menu files. It has happened to me several times that kernel upgrade changes them and 1 or more SO's wont boot.
-
I think it will work in any system having apt-get as package manager.
OP: you should also check for changes in grub/lilo menu files. It has happened to me several times that kernel upgrade changes them and 1 or more SO's wont boot.
Yes, that is something worth mentioning, maybe we could release a updater script who works for more package managers, like pacman.
-
saving typing isn't helpful when you lose power, a good pacman shouldn't need something like this.
also not C, ; not need.
-
a good pacman shouldn't need something like this.
Indeed, a good pacman needs vitamins to munch them ghosts.
-
Indeed, a good pacman needs vitamins to munch them ghosts.
someone(i think my dad) used to call those yellow dots bananas, although they look fuck all like bananas. So I always called those big dots(that allow you to fuck the ghouls) big bananas, sounds pretty gay now.