~guadalinex-members/firstboot/trunk

« back to all changes in this revision

Viewing changes to bin/firstboot

  • Committer: David Amian Valle
  • Date: 2012-04-02 11:58:07 UTC
  • mfrom: (238.1.6)
  • Revision ID: git-v1:b3dcba155f85e26138e391002fcdad67f392a8d5
Merge pull request #59 from amian84/master

Some changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    except Exception as e:
71
71
        pass
72
72
 
 
73
def check_live():
 
74
    return os.path.exists('/var/lib/dpkg/info/ubiquity.list')
 
75
 
73
76
if __name__ == '__main__':
74
77
    if os.getuid() != 0:
75
78
        sys.stdout.write(_('You need to be root to run this program.'))
76
79
        sys.stdout.flush()
77
80
        sys.exit(1)
78
 
 
79
 
    fix_psmouse()
80
 
    firstboot.main()
 
81
    if not check_live():
 
82
        fix_psmouse()
 
83
        firstboot.main()