# HG changeset patch # User Pascal Bellard # Date 1205351643 0 # Node ID c05ff7572e162ae0d56de6eca633738a64b853ac # Parent 5a403db80cf8081e78c689c2e1da65db41949f8b get-skype, get-flash-plugin: check we are root diff -r 5a403db80cf8 -r c05ff7572e16 get-flash-plugin/stuff/get-flash-plugin --- a/get-flash-plugin/stuff/get-flash-plugin Wed Mar 12 19:24:20 2008 +0000 +++ b/get-flash-plugin/stuff/get-flash-plugin Wed Mar 12 19:54:03 2008 +0000 @@ -1,5 +1,11 @@ #!/bin/sh -e +if test $(id -u) != 0 ; then + echo -e "\nYou must be root to run `basename $0`." + echo -e "Please type 'su' and root password to become super-user.\n" + exit 0 +fi + DIR=install_flash_player_9_linux TARBALL=$DIR.tar.gz WEB_SITE="http://www.adobe.com/products/flash/" diff -r 5a403db80cf8 -r c05ff7572e16 get-skype/stuff/get-skype --- a/get-skype/stuff/get-skype Wed Mar 12 19:24:20 2008 +0000 +++ b/get-skype/stuff/get-skype Wed Mar 12 19:54:03 2008 +0000 @@ -1,5 +1,11 @@ #!/bin/sh -e +if test $(id -u) != 0 ; then + echo -e "\nYou must be root to run `basename $0`." + echo -e "Please type 'su' and root password to become super-user.\n" + exit 0 +fi + # Download tarball WEB_SITE="http://www.skype.com/" wget ${WEB_SITE}go/getskype-linux-static @@ -18,6 +24,7 @@ mv skype /usr/bin mv skype.conf /etc mv skype.desktop /usr/share/applications +ln /usr/share/skype/icons/*16.png /usr/share/pixmaps/skype.png # Create pseudo package mkdir -p fs/usr/share/skype