Chameleon

Chameleon Commit Details

Date:2011-07-04 22:28:09 (7 years 1 month ago)
Author:Evan Lojewski
Commit:1105
Parents: 1104
Message:Rename com.apple.Boot.plist to org.chameleon.Boot.plist when in /Extra. Notify the user to rename the file as the old path is now depreciated and will not exist forever.
Changes:
M/trunk/i386/libsaio/stringTable.c

File differences

trunk/i386/libsaio/stringTable.c
643643
644644
645645
646
647
646
647
648
649
648650
649651
650652
......
653655
654656
655657
658
659
660
661
662
663
664
665
656666
657667
658668
int loadChameleonConfig(config_file_t *config)
{
char *dirspec[] = {
"rd(0,0)/Extra/com.apple.Boot.plist",
"/Extra/com.apple.Boot.plist",
"rd(0,0)/Extra/org.chameleon.Boot.plist",
"/Extra/org.chameleon.Boot.plist",
"rd(0,0)/Extra/com.apple.Boot.plist", /* DEPRECIATED */
"/Extra/com.apple.Boot.plist", /* DEPRECIATED */
};
int i, fd, count, ret=-1;
{
if ((fd = open(dirspec[i], 0)) >= 0)
{
// Check for depreciated file names and annoy the user about it.
if(strstr(dirspec[i], "com.apple.Boot.plist"))
{
printf("%s is depreciated.\n", dirspec[i]);
dirspec[i][strlen(dirspec[i]) - strlen("com.apple.Boot.plist")] = 0;
printf("Please us the file %sorg.chameleon.Boot.plist instead\n", dirspec[i]);
pause();
}
// read file
count = read(fd, config->plist, IO_CONFIG_DATA_SIZE);
close(fd);

Archive Download the corresponding diff file

Revision: 1105