403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/PackageKit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/PackageKit/pk-upgrade-distro.sh
#!/bin/sh
# Copyright (C) 2008 Richard Hughes <richard@hughsie.com>
#
# This file is designed to be run by a not privileged user, NOT ROOT.
# The tool which is invoked will have to use consolehelper or PolicyKit
# if privileged changes are required.
#
# Licensed under the GNU General Public License Version 2
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

DISTRO=""
if [ -e /usr/bin/lsb_release ]; then
	DISTRO=$(/usr/bin/lsb_release -is)
fi

# Fedora uses preupgrade
if [ -e /etc/fedora-release ]; then
	if [ -e /usr/bin/preupgrade ]; then
		/usr/bin/preupgrade
	else
		xdg-open http://fedoraproject.org/en/get-fedora
	fi
elif [ "$DISTRO" = "Ubuntu" ]; then
	if [ -e /usr/bin/do-release-upgrade ]; then
		gksu "/usr/bin/do-release-upgrade -m desktop -f gtk -p"
	else
		xdg-open http://www.ubuntu.com/getubuntu
	fi
elif [ -e /etc/SuSE-release ] && [ -x /usr/sbin/wagon ]; then
	xdg-su -c /usr/sbin/wagon
else
	TITLE="System is not recognised"
	TEXT="Your distribution was not recognised by the upgrade script.\nPlease file a but in your distribution bug tracker under the component PackageKit."
	# do not dep on zenity in build scripts
	which zenity 2> /dev/null > /dev/null
	if [ "$?" -eq 0 ]; then
	    zenity --warning --title $TITLE --text $TEXT
	else
	    xmessage $TEXT
	fi
fi


Youez - 2016 - github.com/yon3zu
LinuXploit