I was just wondering if it was possible to run a script as soon as a test to see if a network interface is up (like a
ping or something)? I think it would be pretty awesome to update my
yum when I login, but I want to make sure that I have internet access first. Any ideas?
Why not, instead of whenever you log in, just set up a
If you really wanted to do it every time you logged in you could just put
Alternatively in your crontab:
And in yumupdate.sh
Maybe you want to look at:
...and maybe add features to it?