Subversion Repositories freemyipod

Rev

Rev 424 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 424 Rev 427
Line 2... Line 2...
2
#
2
#
3
#
3
#
4
#    Copyright 2010 TheSeven
4
#    Copyright 2010 TheSeven
5
#
5
#
6
#
6
#
7
#    This file is part of emBIOS.
7
#    This file is part of emCORE.
8
#
8
#
9
#    emBIOS is free software: you can redistribute it and/or
9
#    emCORE is free software: you can redistribute it and/or
10
#    modify it under the terms of the GNU General Public License as
10
#    modify it under the terms of the GNU General Public License as
11
#    published by the Free Software Foundation, either version 2 of the
11
#    published by the Free Software Foundation, either version 2 of the
12
#    License, or (at your option) any later version.
12
#    License, or (at your option) any later version.
13
#
13
#
14
#    emBIOS is distributed in the hope that it will be useful,
14
#    emCORE is distributed in the hope that it will be useful,
15
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
16
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
#    See the GNU General Public License for more details.
17
#    See the GNU General Public License for more details.
18
#
18
#
19
#    You should have received a copy of the GNU General Public License along
19
#    You should have received a copy of the GNU General Public License along
20
#    with emBIOS.  If not, see <http://www.gnu.org/licenses/>.
20
#    with emCORE.  If not, see <http://www.gnu.org/licenses/>.
21
#
21
#
22
#
22
#
23
 
23
 
24
 
24
 
25
import sys
25
import sys
26
import time
26
import time
27
import libembiosldr
27
import libemcoreldr
28
 
28
 
29
 
29
 
30
def usage():
30
def usage():
31
  print ""
31
  print ""
32
  print "Please provide a command and (if needed) parameters as command line arguments"
32
  print "Please provide a command and (if needed) parameters as command line arguments"
Line 74... Line 74...
74
    dev.run(argv[2])
74
    dev.run(argv[2])
75
 
75
 
76
  else: usage()
76
  else: usage()
77
 
77
 
78
 
78
 
79
dev = libembiosldr.embiosldr()
79
dev = libemcoreldr.emcoreldr()
80
parsecommand(dev, sys.argv)
80
parsecommand(dev, sys.argv)