Chameleon Applications

Chameleon Applications Svn Source Tree

Root/branches/iFabio/package/Configuration/PrefPanel/Chameleon.prefPane/Contents/Resources/getDevProp.sh

  • Property svn:executable set to
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
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: 214