summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-09 20:45:15 +0200
committerChristian Breunig <christian@breunig.cc>2023-07-09 20:45:15 +0200
commit00f95c93b6c3aca25d5f4ba0e29b4f8db954952c (patch)
treec2e617c251498dc30a3467c51b3ff7a9651283d1 /debian/rules
parent63256e1b57153762d1d5028fc0bbb8f373ce1433 (diff)
downloadvyos-1x-00f95c93b6c3aca25d5f4ba0e29b4f8db954952c.tar.gz
vyos-1x-00f95c93b6c3aca25d5f4ba0e29b4f8db954952c.zip
T3355: import startup scripts from vyatta-cfg repo for vyos-router
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index e613f1e0a..9ada2bf87 100755
--- a/debian/rules
+++ b/debian/rules
@@ -51,6 +51,10 @@ override_dh_auto_install:
mkdir -p $(DIR)/$(VYOS_LIBEXEC_DIR)/op_mode
cp -r src/op_mode/* $(DIR)/$(VYOS_LIBEXEC_DIR)/op_mode
+ # Install op mode scripts
+ mkdir -p $(DIR)/$(VYOS_LIBEXEC_DIR)/init
+ cp -r src/init/* $(DIR)/$(VYOS_LIBEXEC_DIR)/init
+
# Install validators
mkdir -p $(DIR)/$(VYOS_LIBEXEC_DIR)/validators
cp -r src/validators/* $(DIR)/$(VYOS_LIBEXEC_DIR)/validators
@@ -123,3 +127,7 @@ override_dh_auto_install:
# Install udev script
mkdir -p $(DIR)/usr/lib/udev
cp src/helpers/vyos_net_name $(DIR)/usr/lib/udev
+
+override_dh_installsystemd:
+ dh_installsystemd -pvyos-1x --name vyos-router vyos-router.service
+ dh_installsystemd -pvyos-1x --name vyos vyos.target