package printer::services; use strict; use services; use run_program; sub restart ($) { my ($service) = @_; if (services::restart($service)) { # CUPS needs some time to come up. wait_for_cups() if $service eq "cups"; return 1; } else { return 0 } } sub start ($) { my ($service) = @_; if (services::start($service)) { # CUPS needs some time to come up. wait_for_cups() if $service eq "cups"; return 1; } else { return 0 } } sub start_not_running_service ($) { my ($service) = @_; # The exit status is not zero when the service is not running if (services::start_not_running_service($service)) { return 0; } else { run_program::rooted($::prefix, "/etc/rc.d/init.d/$service", "start"); if (($? >> 8) != 0) { return 0; } else { # CUPS needs some time to come up. wait_for_cups() if $service eq "cups"; return 1; } } } sub wait_for_cups { # CUPS needs some time to come up. Wait up to 30 seconds, checking # whether CUPS is ready. my $cupsready = 0; my $i; for ($i = 0; $i < 30; $i++) { run_program::rooted($::prefix, "/usr/bin/lpstat", "-r"); if (($? >> 8) != 0) { # CUPS is not ready, continue sleep 1; } else { # CUPS is ready, quit $cupsready = 1; last; } } return $cupsready; } 1; n> Hardware List for the Light Hardware Detection ToolThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/dkms-modules-info/2.6.33.4-server-3mnb/wlan_tkip.alias
diff options
context:
space:
mode:
authorGiuseppe Ghibò <ghibo@mageia.org>2020-10-08 17:47:24 +0200
committerGiuseppe Ghibò <ghibo@mageia.org>2020-10-08 17:47:24 +0200
commit68fd0928c5ef9c1f1000ef818bf954e782cfaae2 (patch)
tree1c33898527f50e3a8cf452ac8d407bc2c4ce0cb0 /dkms-modules-info/2.6.33.4-server-3mnb/wlan_tkip.alias
parent2e97fa13992acd44178b95fb43c12c0d77d816b6 (diff)
downloadldetect-lst-68fd0928c5ef9c1f1000ef818bf954e782cfaae2.tar
ldetect-lst-68fd0928c5ef9c1f1000ef818bf954e782cfaae2.tar.gz
ldetect-lst-68fd0928c5ef9c1f1000ef818bf954e782cfaae2.tar.bz2
ldetect-lst-68fd0928c5ef9c1f1000ef818bf954e782cfaae2.tar.xz
ldetect-lst-68fd0928c5ef9c1f1000ef818bf954e782cfaae2.zip
refresh pcitable to sync with nvidia-current 455.280.6.14
Diffstat (limited to 'dkms-modules-info/2.6.33.4-server-3mnb/wlan_tkip.alias')
0 files changed, 0 insertions, 0 deletions