summaryrefslogtreecommitdiff
path: root/platform.pl.in
diff options
context:
space:
mode:
authorcarlosg <carlosg>2003-10-09 00:20:53 +0000
committercarlosg <carlosg>2003-10-09 00:20:53 +0000
commita0253960eafdb5550fb0dd80b3c45bfd09d86e45 (patch)
tree20dc50c6133c5200ae804bc5c6c37fb88877df78 /platform.pl.in
parent6fd2173818c14d03429a1020e8029f59bc698568 (diff)
2003-10-09 Carlos Garnacho Parro <garnacho@tuxerver.net>
* backends/network-conf.in, network.pl.in, package-conf.in, platform.pl.in, print.pl.in, service.pl.in, services-conf.in, shares-conf.in, time-conf.in, users-conf.in: patch by Gerhard Mourani for adding OpenNA support * pixmaps/openna.png: added * pixmaps/Makefile.am: reflect this * src/common/gst-platform.c, gst-tool.c: added the OpenNA icon to the supported platform list
Diffstat (limited to 'platform.pl.in')
-rw-r--r--platform.pl.in20
1 files changed, 18 insertions, 2 deletions
diff --git a/platform.pl.in b/platform.pl.in
index ce2e694..fbee3c8 100644
--- a/platform.pl.in
+++ b/platform.pl.in
@@ -51,6 +51,7 @@ $PLATFORM_INFO = {
"redhat-7.3" => "Red Hat Linux 7.3 Valhalla",
"redhat-8.0" => "Red Hat Linux 8.0 Psyche",
"redhat-9" => "Red Hat Linux 9.0 Shrike",
+ "openna-1.0" => "OpenNA Linux 1.0 VSLC",
"mandrake-7.1" => "Linux Mandrake 7.1",
"mandrake-7.2" => "Linux Mandrake 7.2 Odyssey",
"mandrake-8.0" => "Linux Mandrake 8.0 Traktopel",
@@ -121,6 +122,21 @@ sub check_redhat
return -1;
}
+sub check_openna
+{
+ open OPENNA, "$gst_prefix/etc/openna-release" or return -1;
+ while (<OPENNA>)
+ {
+ chomp;
+ if (/^OpenNA*/)
+ {
+ close OPENNA;
+ return "openna-$1";
+ }
+ }
+ close OPENNA;
+ return -1;
+}
sub check_caldera
{
@@ -305,8 +321,8 @@ sub gst_platform_guess
my %check = (
# Red Hat check must run after Mandrake
"Linux" => [ \&check_lsb, \&check_debian, \&check_caldera, \&check_suse,
- \&check_mandrake, \&check_linuxppc, \&check_redhat, \&check_turbolinux,
- \&check_slackware, \&check_gentoo, \&check_pld ],
+ \&check_mandrake, \&check_linuxppc, \&check_redhat, \&check_openna,
+ \&check_turbolinux, \&check_slackware, \&check_gentoo, \&check_pld ],
"FreeBSD" => [ \&check_freebsd ],
"SunOS" => [ \&check_solaris ]
);