summaryrefslogtreecommitdiff
path: root/ironic_python_agent/shell
diff options
context:
space:
mode:
authorJim Rollenhagen <jim@jimrollenhagen.com>2014-04-09 14:31:31 -0700
committerJim Rollenhagen <jim@jimrollenhagen.com>2014-04-10 07:14:06 -0700
commit3c1d52cbb16b72814d697c9cccd5714608794956 (patch)
tree8f6950fa9159fd38f0837e56c50113167db7e7fb /ironic_python_agent/shell
parentb826a72a7b9514c6df300351b7ef7d8069fa0864 (diff)
downloadironic-python-agent-3c1d52cbb16b72814d697c9cccd5714608794956.tar.gz
Use # instead of """ for copyright blocks
Reformats copyright messages to be comments rather than docstring-style blocks. Change-Id: I4d863f53b67bb49d03bda0952b9e6179b6d23c59
Diffstat (limited to 'ironic_python_agent/shell')
-rw-r--r--ironic_python_agent/shell/__init__.py15
-rwxr-xr-xironic_python_agent/shell/copy_configdrive_to_disk.sh14
-rw-r--r--ironic_python_agent/shell/reboot.sh14
-rwxr-xr-xironic_python_agent/shell/write_image.sh14
4 files changed, 42 insertions, 15 deletions
diff --git a/ironic_python_agent/shell/__init__.py b/ironic_python_agent/shell/__init__.py
deleted file mode 100644
index 2a30de06..00000000
--- a/ironic_python_agent/shell/__init__.py
+++ /dev/null
@@ -1,15 +0,0 @@
-"""
-Copyright 2014 Rackspace, Inc.
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-"""
diff --git a/ironic_python_agent/shell/copy_configdrive_to_disk.sh b/ironic_python_agent/shell/copy_configdrive_to_disk.sh
index 2a67389f..e3f08d40 100755
--- a/ironic_python_agent/shell/copy_configdrive_to_disk.sh
+++ b/ironic_python_agent/shell/copy_configdrive_to_disk.sh
@@ -1,5 +1,19 @@
#!/bin/bash
+# Copyright 2013 Rackspace, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
set -e
log() {
diff --git a/ironic_python_agent/shell/reboot.sh b/ironic_python_agent/shell/reboot.sh
index ef9832f5..9d758464 100644
--- a/ironic_python_agent/shell/reboot.sh
+++ b/ironic_python_agent/shell/reboot.sh
@@ -1,5 +1,19 @@
#!/bin/bash
+
+# Copyright 2013 Rackspace, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# This script reboots by echoing into /proc/sysrq_trigger.
set -e
diff --git a/ironic_python_agent/shell/write_image.sh b/ironic_python_agent/shell/write_image.sh
index ad68298b..00a85402 100755
--- a/ironic_python_agent/shell/write_image.sh
+++ b/ironic_python_agent/shell/write_image.sh
@@ -1,5 +1,19 @@
#!/bin/bash
+
+# Copyright 2013 Rackspace, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# This should work with almost any image that uses MBR partitioning and doesn't already
# have 3 or more partitions.