summaryrefslogtreecommitdiffstats
path: root/dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb
diff options
context:
space:
mode:
authorMandrake <mandrake@mandriva.com>2008-12-14 05:25:35 +0000
committerMandrake <mandrake@mandriva.com>2008-12-14 05:25:35 +0000
commite70029f245a789b68c574ea11f74adf68f32b28d (patch)
treee2bae2929c78aa1ded18c89038bdbc4fcd55c24c /dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb
parent03a552e5baf6a87abc4317daef5e0edd67b6fd2e (diff)
downloadldetect-lst-e70029f245a789b68c574ea11f74adf68f32b28d.tar
ldetect-lst-e70029f245a789b68c574ea11f74adf68f32b28d.tar.gz
ldetect-lst-e70029f245a789b68c574ea11f74adf68f32b28d.tar.bz2
ldetect-lst-e70029f245a789b68c574ea11f74adf68f32b28d.tar.xz
ldetect-lst-e70029f245a789b68c574ea11f74adf68f32b28d.zip
add dkms info for syntek with kernel 2.6.28-desktop586-0.rc8.1mnb
Diffstat (limited to 'dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb')
-rw-r--r--dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb/stk11xx.alias7
-rw-r--r--dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb/stk11xx.description1
2 files changed, 8 insertions, 0 deletions
diff --git a/dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb/stk11xx.alias b/dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb/stk11xx.alias
new file mode 100644
index 00000000..1adb4a22
--- /dev/null
+++ b/dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb/stk11xx.alias
@@ -0,0 +1,7 @@
+usb:v05E1p0501d*dc*dsc*dp*ic*isc*ip*
+usb:v174Fp6A54d*dc*dsc*dp*ic*isc*ip*
+usb:v174Fp6A51d*dc*dsc*dp*ic*isc*ip*
+usb:v174Fp6A33d*dc*dsc*dp*ic*isc*ip*
+usb:v174Fp6A31d*dc*dsc*dp*ic*isc*ip*
+usb:v174FpA821d*dc*dsc*dp*ic*isc*ip*
+usb:v174FpA311d*dc*dsc*dp*ic*isc*ip*
diff --git a/dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb/stk11xx.description b/dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb/stk11xx.description
new file mode 100644
index 00000000..eaf9f272
--- /dev/null
+++ b/dkms-modules-info/2.6.28-desktop586-0.rc8.1mnb/stk11xx.description
@@ -0,0 +1 @@
+Syntek USB Video Camera
1 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
package timezone; # $Id$

use diagnostics;
use strict;

use common;
use log;


sub getTimeZones() {
    my $prefix = $::testing ? '' : $::prefix;
    open(my $F, "cd $prefix/usr/share/zoneinfo && find [A-Z]* -type f |");
    my @l = difference2([ chomp_(<$F>) ], [ 'ROC', 'PRC' ]);
    close $F or die "cannot list the available zoneinfos";
    sort @l;
}

sub read() {
    my %t = getVarsFromSh("$::prefix/etc/sysconfig/clock") or return {};
    { timezone => $t{ZONE}, UTC => text2bool($t{UTC}) };
}

sub ntp_server {
    my $setting = @_ >= 1;
    my ($server) = @_;

    my $f = "$::prefix/etc/ntp.conf";
    -e $f or return;

    if ($setting) {
	my $added = 0;
	substInFile {
	    if (/^#?\s*server\s+(\S*)/ && $1 ne '127.127.1.0') {
		$_ = $added ? "#server $1\n" : "server $server\n";
		$added = 1;
	    }
	} $f;
	output_p("$::prefix/etc/ntp/step-tickers", "$server\n");
    } else {
	$server = find { $_ ne '127.127.1.0' } map { if_(/^\s*server\s+(\S*)/, $1) } cat_($f);
    }
    $server;
}

sub write {
    my ($t) = @_;

    ntp_server($t->{ntp});

    eval { cp_af("$::prefix/usr/share/zoneinfo/$t->{timezone}", "$::prefix/etc/localtime") };
    $@ and log::l("installing /etc/localtime failed");
    setVarsInSh("$::prefix/etc/sysconfig/clock", {
	ZONE => $t->{timezone},
	UTC  => bool2text($t->{UTC}),
	ARC  => "false",
    });
}

#- best guesses for a given country
my %c2t = (
'AM' => 'Asia/Yerevan',
'AR' => 'America/Buenos_Aires',
'AT' => 'Europe/Vienna',
'AU' => 'Australia/Sydney',
'BA' => 'Europe/Sarajevo',
'BE' => 'Europe/Brussels',
'BG' => 'Europe/Sofia',
'BR' => 'Brazil/East', #- most people live on the east coast
'BY' => 'Europe/Minsk',
'CA' => 'Canada/Eastern',
'CH' => 'Europe/Zurich',
'CN' => 'Asia/Beijing',
'CZ' => 'Europe/Prague',
'DE' => 'Europe/Berlin',
'DK' => 'Europe/Copenhagen',
'EE' => 'Europe/Tallinn',
'ES' => 'Europe/Madrid',
'FI' => 'Europe/Helsinki',
'FR' => 'Europe/Paris',
'GB' => 'Europe/London',
'GE' => 'Asia/Yerevan',
'GL' => 'Arctic/Longyearbyen',
'GR' => 'Europe/Athens',
'HR' => 'Europe/Zagreb',
'HU' => 'Europe/Budapest',
'ID' => 'Asia/Jakarta',
'IE' => 'Europe/Dublin',
'IL' => 'Asia/Tel_Aviv',
'IN' => 'Asia/Calcutta',
'IR' => 'Asia/Tehran',
'IS' => 'Atlantic/Reykjavik',
'IT' => 'Europe/Rome',
'JP' => 'Asia/Tokyo',
'KR' => 'Asia/Seoul',
'LT' => 'Europe/Vilnius',
'LV' => 'Europe/Riga',
'MK' => 'Europe/Skopje',
'MT' => 'Europe/Malta',
'MX' => 'America/Mexico_City',
'MY' => 'Asia/Kuala_Lumpur',
'NL' => 'Europe/Amsterdam',
'NO' => 'Europe/Oslo',
'NZ' => 'Pacific/Auckland',
'PL' => 'Europe/Warsaw',
'PT' => 'Europe/Lisbon',
'RO' => 'Europe/Bucharest',
'RU' => 'Europe/Moscow',
'SE' => 'Europe/Stockholm',
'SI' => 'Europe/Ljubljana',
'SK' => 'Europe/Bratislava',
'TH' => 'Asia/Bangkok',
'TJ' => 'Asia/Dushanbe',
'TR' => 'Europe/Istanbul',
'TW' => 'Asia/Taipei',
'UA' => 'Europe/Kiev',
'US' => 'America/New_York',
'UZ' => 'Asia/Tashkent',
'VN' => 'Asia/Saigon',
'YU' => 'Europe/Belgrade',
'ZA' => 'Africa/Johannesburg',
);

sub fuzzyChoice { 
    my ($b, $count) = bestMatchSentence($_[0], keys %c2t);
    $count ? $b : '';
}
sub bestTimezone { $c2t{fuzzyChoice($_[0])} || 'GMT' }

sub ntp_servers() { 
    +{
	'time.sinectis.com.ar' => 'Argentina',
	'tick.nap.com.ar' => 'Argentina',
	'tock.nap.com.ar' => 'Argentina',
	'ntp.adelaide.edu.au' => 'Australia',
	'ntp.saard.net' => 'Australia',
	'ntp1.belbone.be' => 'Belgium',
	'ntp2.belbone.be' => 'Belgium',
	'ntp.cpsc.ucalgary.ca' => 'Canada',
	'ntp1.cmc.ec.gc.ca' => 'Canada',
	'ntp2.cmc.ec.gc.ca' => 'Canada',
	'time.chu.nrc.ca' => 'Canada',
	'time.nrc.ca' => 'Canada',
	'timelord.uregina.ca' => 'Canada',
	'ntp.globe.cz' => 'Czech republic',
	'ntp.karpo.cz' => 'Czech republic',
	'ntp1.contactel.cz' => 'Czech republic',
	'ntp2.contactel.cz' => 'Czech republic',
	'clock.netcetera.dk' => 'Denmark',
	'clock2.netcetera.dk' => 'Denmark',
	'slug.ctv.es' => 'Spain',
	'tick.keso.fi' => 'Finland',
	'tock.keso.fi' => 'Finland',