Root/
| |
---|---|
Source at commit 214 created 13 years 5 months ago. By ifabio, update to chameleon trunk 630, and now the pakage folder is the same as blackosx branch, also add Icon "building" into buildpkg script, and add mint theme info into the English localizable.strings. | |
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␊ |
11 | cdir=`dirname $0`␊ |
12 | tmpDir=/tmp/Chameleon␊ |
13 | dmpdir=${tmpDir}/devprop␊ |
14 | ␊ |
15 | # Create a dump directory␊ |
16 | if [[ ! -d $dmpdir ]];then␊ |
17 | mkdir -p $dmpdir ␊ |
18 | fi␊ |
19 | if [[ ! -d $tmpDir ]];then␊ |
20 | mkdir -p $tmpDir ␊ |
21 | fi␊ |
22 | # Dump Device properties␊ |
23 | ioreg -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 !!␊ |
29 | open $dmpdir/chameleon-devprop.plist␊ |
30 | if [[ ! -d $dmpdir ]];then␊ |
31 | rm -r $dmpdir ␊ |
32 | fi␊ |
33 | if [[ ! -d $tmpDir ]];then␊ |
34 | rm -r $tmpDir ␊ |
35 | fi␊ |
36 | ␊ |
37 | #end␊ |
38 | #echo $? |