summaryrefslogtreecommitdiffstats
path: root/knetworkconf/backends/platform.pl.in
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-12-29 01:08:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-12-29 01:08:06 +0000
commitf12b53b8c6d6bf9c6bb0e84a4c6f941aee1a9ebd (patch)
tree5da2b31fd2b6c748098add428def405d33b70878 /knetworkconf/backends/platform.pl.in
parent37333bf25ad9a4c538250f5af2f9f1d666362883 (diff)
downloadtdeadmin-f12b53b8c6d6bf9c6bb0e84a4c6f941aee1a9ebd.tar.gz
tdeadmin-f12b53b8c6d6bf9c6bb0e84a4c6f941aee1a9ebd.zip
* KDE cron updates
* KDE networking module platform string updates git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1067153 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knetworkconf/backends/platform.pl.in')
-rw-r--r--knetworkconf/backends/platform.pl.in17
1 files changed, 11 insertions, 6 deletions
diff --git a/knetworkconf/backends/platform.pl.in b/knetworkconf/backends/platform.pl.in
index c81a9e1..1a5b7eb 100644
--- a/knetworkconf/backends/platform.pl.in
+++ b/knetworkconf/backends/platform.pl.in
@@ -51,6 +51,11 @@ $PLATFORM_INFO = {
"ubuntu-7.04" => "Kubuntu 7.04, Feisty Fawn",
"ubuntu-7.10" => "Kubuntu 7.10, Gutsy Gibbon",
"ubuntu-8.04" => "Kubuntu 8.04, Hardy Heron",
+ "ubuntu-8.10" => "Kubuntu 8.10, Intrepid Ibex",
+ "ubuntu-9.04" => "Kubuntu 9.04, Jaunty Jackalope",
+ "ubuntu-9.10" => "Kubuntu 9.10, Karmic Koala",
+ "ubuntu-10.04" => "Kubuntu 10.04, Lucid Lynx",
+ "ubuntu-10.10" => "Kubuntu 10.10, Unknown Yet",
"redhat-5.2" => "Red Hat Linux 5.2 Apollo",
"redhat-6.0" => "Red Hat Linux 6.0 Hedwig",
"redhat-6.1" => "Red Hat Linux 6.1 Cartman",
@@ -109,13 +114,13 @@ $PLATFORM_INFO = {
"rpath" => "rPath Linux",
"ark" => "Ark Linux",
};
-
+
sub check_lsb
{
my ($ver, $dist);
# my %vermap =
# ("3.0" => "woody");
-
+
my %distmap =
("Debian" => "debian"),
("Mandrake" => "mandrake"),
@@ -125,7 +130,7 @@ sub check_lsb
# gst_prefix not required here: parse already does that for us.
$dist = lc (&gst_parse_sh ("/etc/lsb-release", "DISTRIB_ID"));
$ver = lc (&gst_parse_sh ("/etc/lsb-release", "DISTRIB_RELEASE"));
-
+
# $ver = $vermap{$ver} if exists $vermap{$ver};
$dist = $distmap{$dist} if exists $dirmap{$dir};
@@ -305,12 +310,12 @@ sub check_blackpanther
if ($ver =~ /^Linux Black Panther release (\S+)/)
{
close BLACKPANTHER;
- return "blackPanther-$1";
+ return "blackPanther-$1";
}
elsif ($ver =~ /^Black Panther ( L|l)inux release ([\d\.]+)/i)
{
close BLACKPANTHER;
- return "blackPanther-$2";
+ return "blackPanther-$2";
}
}
@@ -586,7 +591,7 @@ sub gst_platform_guess
if ($$tool{"system"} =~ /$plat/)
{
my ($check, $dist);
-
+
foreach $check (@{$check{$plat}})
{
$dist = &$check ();