-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfw-detect
More file actions
executable file
·74 lines (69 loc) · 1.79 KB
/
Copy pathfw-detect
File metadata and controls
executable file
·74 lines (69 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
#
# Script to check if firmware or other non-free drivers are required.
#
# Copyright (C) 2007-2008 Kel Modderman <kel@otaku42.de>
# Copyright (C) 2008-2015, Stefan Lippers-Hollmann <s.l-h@gmx.de>
# Copyright (C) 2008, Horst Tritremmel <peter_weber69@gmx.at>
# Copyright (C) 2008-2009, Joaquim Boura <x-un-i@sapo.pt>
# Copyright (C) 2009 Niall Walsh <niallwalsh@users.berlios.de>
# major modifications to disconnect data from scripts
#
# 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; version 2 of the
# License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
function selfhelp () {
echo "Usage:
$0 (-y|-i module) (-a) (-h) (-s) (-v) (-x)
-y try to install needed firmwares
-i module install firmware for given module
-a show information on all known modules
-h show this help message
-s enable short output mode
-v increase verbosity (repeat for more)
-x prints executed commands and their arguments for debugging
"
}
. /usr/share/siduction-scripts/fw
#
# check for get_dvb_firmware script
#
[[ -x $(which get_dvb_firmware) ]] && DVB=1 || DVB=0
while getopts ahisvxy opt; do
case "${opt}" in
a)
show_all_cards
;;
h)
selfhelp
exit
;;
i)
install_driver $2
;;
s)
short="TRUE"
;;
v)
((verbosity++))
;;
x)
set -x
;;
y)
#installable driver
short="TRUE"
install_possible="TRUE"
;;
*)
selfhelp
exit
esac
done
sys_detect