no real work, just some frame work stuff
authorpaulr <me@pjr.cc>
Sun, 11 Jul 2010 05:26:27 +0000 (15:26 +1000)
committerpaulr <me@pjr.cc>
Sun, 11 Jul 2010 05:26:27 +0000 (15:26 +1000)
bin/pbdc [new file with mode: 0644]
bin/pbdc-bacula [new file with mode: 0644]
bin/pbdc-bacula.php [new file with mode: 0644]
bin/pbdc.php [new file with mode: 0644]
db/db.sql [new file with mode: 0644]
lib/lib.php [new file with mode: 0644]

diff --git a/bin/pbdc b/bin/pbdc
new file mode 100644 (file)
index 0000000..95ca1af
--- /dev/null
+++ b/bin/pbdc
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+php pbdc.php $*
\ No newline at end of file
diff --git a/bin/pbdc-bacula b/bin/pbdc-bacula
new file mode 100644 (file)
index 0000000..b3e6c20
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+php pbdc-bacula.php $*
\ No newline at end of file
diff --git a/bin/pbdc-bacula.php b/bin/pbdc-bacula.php
new file mode 100644 (file)
index 0000000..3725529
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+$BASE_LIB="../lib";
+$BASE_BIN="/usr/bin";
+
+require_once "$BASE_LIB/lib.php";
+
+if(!isset($argv[5])) {
+       echo "Usage: ".$argv[0]."  changer-device command slot archive-device drive-index\n";
+       exit(0);
+}
+
+$changer_dev = $argv[1];
+$command = $argv[2];
+$slot = $argv[3];
+$arc_device = $argv[4];
+$drive_index = $argv[5];
+
+
+?>
\ No newline at end of file
diff --git a/bin/pbdc.php b/bin/pbdc.php
new file mode 100644 (file)
index 0000000..8e61a23
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+$BASE_LIB="../lib";
+$BASE_DATA="../db";
+$BASE_BIN="/usr/bin";
+
+require_once "$BASE_LIB/lib.php";
+
+if(!isset($argv[1])) {
+       echo "Usage: ".$argv[0]."  command\n";
+       echo "\tbacula-config - outputs bacula config\n";
+       echo "\tinit - inits the bacula php changer stuff\n";
+       echo "\tadd-disk - adds a disk\n";
+       echo "\tdisks - lists current disks\n";
+       echo "\tstatus - prints status (whats where in which slot, drive, etc)\n";
+       exit(0);
+}
+
+$command = $argv[1];
+
+?>
\ No newline at end of file
diff --git a/db/db.sql b/db/db.sql
new file mode 100644 (file)
index 0000000..0a16ca9
--- /dev/null
+++ b/db/db.sql
@@ -0,0 +1 @@
+# some sql goes here
diff --git a/lib/lib.php b/lib/lib.php
new file mode 100644 (file)
index 0000000..b3d9bbc
--- /dev/null
@@ -0,0 +1 @@
+<?php