Chameleon

Chameleon Svn Source Tree

Root/tags/2.0/package/Configuration/PrefPanel/Chameleon.prefPane/Contents/Resources/getDevProp.sh

  • Property svn:executable set to *
Source at commit 1425 created 12 years 10 months ago.
By ifabio, Renamed all Language folder with Language short code. change the method for add the "credits" into all the .rtf file.
1#!/bin/sh
2
3# getDevProp.sh
4# smbios-cham
5#
6# Created by ronan & thomas on 12/08/09.
7# Copyright 2009 org.darwinx86.app. All rights reserved.
8# adapted for Chameleon control panel use by Rekursor
9#
10# Directories
11cdir=`dirname $0`
12tmpDir=/tmp/Chameleon
13dmpdir=${tmpDir}/devprop
14
15# Create a dump directory
16if [[ ! -d $dmpdir ]];then
17 mkdir -p $dmpdir
18fi
19if [[ ! -d $tmpDir ]];then
20 mkdir -p $tmpDir
21fi
22# Dump Device properties
23ioreg -lw0 -p IODeviceTree -n efi -r -x |grep device-properties | sed 's/.*<//;s/>.*//;' | cat > $dmpdir/chameleon-devprop.hex
24
25$cdir/gfxutil -s -n -i hex -o xml $dmpdir/chameleon-devprop.hex $dmpdir/chameleon-devprop.plist
26
27
28# Splash the result up !!
29open $dmpdir/chameleon-devprop.plist
30if [[ ! -d $dmpdir ]];then
31 rm -r $dmpdir
32fi
33if [[ ! -d $tmpDir ]];then
34 rm -r $tmpDir
35fi
36
37#end
38#echo $?

Archive Download this file

Revision: 1425