summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2007-07-13 15:55:37 -0700
committerGeoff Levand <geoffrey.levand@am.sony.com>2007-07-13 15:55:37 -0700
commitae1405320bd1a54f297063275b6c5bc036d5ba78 (patch)
tree5262ed2b87739997d777006a0892654c7bc12eb1
parent0856a516a10f061e7021d840994bc1030dcb47ce (diff)
downloadps3-utils-ae1405320bd1a54f297063275b6c5bc036d5ba78.tar.gz
ps3videomode.c, other-os-flash-util.c: Add and/or update file copyrights, print version info in help.
-rwxr-xr-xboot-game-os.in19
-rwxr-xr-xfind-other-os-flash.in21
-rw-r--r--other-os-flash-util.c40
-rw-r--r--ps3videomode.c8
4 files changed, 71 insertions, 17 deletions
diff --git a/boot-game-os.in b/boot-game-os.in
index 2f8bbc9..bc225eb 100755
--- a/boot-game-os.in
+++ b/boot-game-os.in
@@ -1,4 +1,23 @@
#!/bin/sh
+#
+# PS3 set boot flag and reboot to game OS.
+#
+# Copyright (C) 2006 Sony Computer Entertainment Inc.
+# Copyright 2006 Sony Corp.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
@prefix@/sbin/other-os-flash-util -b `@prefix@/bin/find-other-os-flash` ||
{
diff --git a/find-other-os-flash.in b/find-other-os-flash.in
index 04e6566..4070004 100755
--- a/find-other-os-flash.in
+++ b/find-other-os-flash.in
@@ -1,4 +1,23 @@
-#! /bin/sh
+#!/bin/sh
+#
+# PS3 find flash memory device.
+#
+# Copyright (C) 2006 Sony Computer Entertainment Inc.
+# Copyright 2006 Sony Corp.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
if @prefix@/sbin/other-os-flash-util -s /dev/ps3flash >/dev/null 2>&1 ; then
echo /dev/ps3flash;
diff --git a/other-os-flash-util.c b/other-os-flash-util.c
index b9b2511..68edb73 100644
--- a/other-os-flash-util.c
+++ b/other-os-flash-util.c
@@ -1,18 +1,21 @@
/*
- * Copyright (C) 2006 Sony Computer Entertainment Inc.
+ * PS3 flash memory utility.
*
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published
- * by the Free Software Foundation; version 2 of the License.
+ * Copyright (C) 2006 Sony Computer Entertainment Inc.
+ * Copyright 2006 Sony Corp.
*
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
*
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#if defined(HAVE_CONFIG_H)
@@ -24,10 +27,23 @@
#include <stdint.h>
#include <inttypes.h>
+#if defined(PACKAGE_VERSION) && defined(PACKAGE_NAME)
+#define PS3AV_VERSION "other-os-flash-util (" PACKAGE_NAME ") " PACKAGE_VERSION "\n\n"
+#else
+#define PS3AV_VERSION ""
+#endif
+
+#if defined(PACKAGE_BUGREPORT)
+#define PS3AV_BUGREPORT "Send bug reports to " PACKAGE_BUGREPORT ".\n\n"
+#else
+#define PS3AV_BUGREPORT ""
+#endif
+
#define MIN(a,b) ((a) < (b) ? (a) : (b))
static void print_usage_exit(int r)
{
+ printf(PS3AV_VERSION);
puts("Usage:");
puts(" other-os-flash-util [-b|-B] [-g|-r] flash_device "
"[boot_loader_img]");
@@ -41,7 +57,7 @@ static void print_usage_exit(int r)
puts(" -B change boot flag : boot linux");
puts(" -g change boot loader format flag : compressed by gzip");
puts(" -r change boot loader format flag : not compressed");
-
+ printf(PS3AV_BUGREPORT);
exit(r);
}
diff --git a/ps3videomode.c b/ps3videomode.c
index 7bd59b6..f47692a 100644
--- a/ps3videomode.c
+++ b/ps3videomode.c
@@ -1,8 +1,8 @@
/*
* PS3 video mode utility.
*
- * Copyright (C) 2007 Sony Computer Entertainment Inc.
- * Copyright 2007 Sony Corp.
+ * Copyright (C) 2006 Sony Computer Entertainment Inc.
+ * Copyright 2006 Sony Corp.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -83,8 +83,8 @@ struct option long_options[] = {
static void usage(void)
{
+ printf(PS3AV_VERSION);
printf(
- PS3AV_VERSION
"Usage:\n"
" ps3videomode [options]\n"
"\n"
@@ -111,8 +111,8 @@ static void usage(void)
" ps3videomode -v 131 Same as above.\n"
"\n"
"If no argument is given, ps3videomode displays the current video mode.\n"
- PS3AV_BUGREPORT
);
+ printf(PS3AV_BUGREPORT);
exit(1);
}