root/trunk/libffado/support/tools/helpstrings.py

Revision 1934, 1.8 kB (checked in by adi, 13 years ago)

Shebang-line cleanup. Closes: #292

Patch provided by Orcan Ogetbil (Fedora).

Line 
1 #
2 # Copyright (C) 2008 Pieter Palmers
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, version 3 of the License.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
15 #
16
17 #
18 # Help strings for ffado problems
19 #
20
21 class HelpStrings:
22     def __init__(self):
23         strings = {}
24         strings['MODULES_OLD_STACK_NOT_INSTALLED']="""
25 FireWire kernel stack not present. Please compile the kernel with
26 FireWire support.
27 """
28         strings['MODULES_BOTH_STACKS_LOADED']="""
29 Both old and new FireWire kernel modules are loaded, your system
30 configuration is bogus.
31 """
32         strings['MODULES_NEW_STACK_LOADED']="""
33 The new FireWire kernel stack is loaded.
34 This is still kind of experimental. If you encounter problems, please also check
35 with the old stack.
36 """
37         strings['MODULES_OLD_STACK_NOT_LOADED']="""
38 FireWire kernel module(s) not found.
39 Please ensure that the raw1394 module is loaded.
40 """
41         strings['DEVNODE_OLD_STACK_NOT_PRESENT']="""
42 /dev/raw1394 device node not present.
43 Please fix your udev configuration or add it as a static node.
44 """
45         strings['DEVNODE_OLD_STACK_NO_PERMISSION']="""
46 Not enough permissions to access /dev/raw1394 device.
47 Please fix your udev configuration, the node permissions or
48 the user/group permissions.
49 """
50
51         self.strings=strings
52
53     def get(self, sid):
54         return self.strings[sid]
55
56     def show(self, sid):
57         print self.get(sid)
58    
Note: See TracBrowser for help on using the browser.