summaryrefslogtreecommitdiff
path: root/rootconf
diff options
context:
space:
mode:
authorCurt Brune <[email protected]>2018-03-13 10:53:59 -0700
committerCurt Brune <[email protected]>2018-03-15 10:16:23 -0700
commit2e213a30dccd9b95be384bd29f115fb52cc78633 (patch)
tree888e585bf79b73923322731d5fbed0dd8860aafd /rootconf
parenta3026af15829a9bc2888a9a5d9d7294b6faab7f6 (diff)
Rename onie-discovery-[start|stop] to onie-[start|stop]
These command names are unnecessarily long, so rename them. Keep the old command names, but mark them as deprecated and will be removed in 2019.02. Closes: #684 Signed-off-by: Curt Brune <[email protected]>
Diffstat (limited to 'rootconf')
-rwxr-xr-xrootconf/default/bin/onie-discovery-start13
-rwxr-xr-xrootconf/default/bin/onie-discovery-stop13
-rwxr-xr-xrootconf/default/bin/onie-start8
-rwxr-xr-xrootconf/default/bin/onie-stop8
4 files changed, 36 insertions, 6 deletions
diff --git a/rootconf/default/bin/onie-discovery-start b/rootconf/default/bin/onie-discovery-start
index aa0cf568..5d711346 100755
--- a/rootconf/default/bin/onie-discovery-start
+++ b/rootconf/default/bin/onie-discovery-start
@@ -1,8 +1,15 @@
#!/bin/sh
-# Copyright (C) 2013 Curt Brune <[email protected]>
+# Copyright (C) 2018 Curt Brune <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0
-# Stop the discovery process
-/etc/init.d/discover.sh start
+# Deprecated legacy command
+
+prog=$(basename $0)
+echo "NOTICE: The '$prog' command is deprecated and will be removed in 2019.02."
+
+new_prog=onie-start
+echo "NOTICE: Use '$new_prog' instead."
+
+$new_prog "$@"
diff --git a/rootconf/default/bin/onie-discovery-stop b/rootconf/default/bin/onie-discovery-stop
index d358e474..c47fb550 100755
--- a/rootconf/default/bin/onie-discovery-stop
+++ b/rootconf/default/bin/onie-discovery-stop
@@ -1,8 +1,15 @@
#!/bin/sh
-# Copyright (C) 2013 Curt Brune <[email protected]>
+# Copyright (C) 2018 Curt Brune <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0
-# Stop the discovery process
-/etc/init.d/discover.sh stop
+# Deprecated legacy command
+
+prog=$(basename $0)
+echo "NOTICE: The '$prog' command is deprecated and will be removed in 2019.02."
+
+new_prog=onie-stop
+echo "NOTICE: Use '$new_prog' instead."
+
+$new_prog "$@"
diff --git a/rootconf/default/bin/onie-start b/rootconf/default/bin/onie-start
new file mode 100755
index 00000000..fc5cc7c0
--- /dev/null
+++ b/rootconf/default/bin/onie-start
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Copyright (C) 2018 Curt Brune <[email protected]>
+#
+# SPDX-License-Identifier: GPL-2.0
+
+# Stop the discovery process
+/etc/init.d/discover.sh start
diff --git a/rootconf/default/bin/onie-stop b/rootconf/default/bin/onie-stop
new file mode 100755
index 00000000..2f329af7
--- /dev/null
+++ b/rootconf/default/bin/onie-stop
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Copyright (C) 2018 Curt Brune <[email protected]>
+#
+# SPDX-License-Identifier: GPL-2.0
+
+# Stop the discovery process
+/etc/init.d/discover.sh stop