File tree 5 files changed +11
-11
lines changed
5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
[Unit]
2
2
Description=DHCP relay container
3
3
Requires=docker.service
4
- After=device -config.service
4
+ After=role -config.service
5
5
After=interfaces-config.service
6
6
7
7
[Service]
Original file line number Diff line number Diff line change @@ -130,10 +130,10 @@ sudo cp $IMAGE_CONFIGS/platform/platform-init.service $FILESYSTEM_ROOT/etc/syst
130
130
sudo LANG=C chroot $FILESYSTEM_ROOT systemctl enable platform-init.service
131
131
sudo cp $IMAGE_CONFIGS /platform/platform-init.sh $FILESYSTEM_ROOT /usr/bin/
132
132
133
- # Copy device -config script and service unit file, enable service
134
- sudo cp $IMAGE_CONFIGS /platform/device -config.service $FILESYSTEM_ROOT /etc/systemd/system/
135
- sudo LANG=C chroot $FILESYSTEM_ROOT systemctl enable device -config.service
136
- sudo cp $IMAGE_CONFIGS /platform/device -config.sh $FILESYSTEM_ROOT /usr/bin/
133
+ # Copy role -config script and service unit file, enable service
134
+ sudo cp $IMAGE_CONFIGS /platform/role -config.service $FILESYSTEM_ROOT /etc/systemd/system/
135
+ sudo LANG=C chroot $FILESYSTEM_ROOT systemctl enable role -config.service
136
+ sudo cp $IMAGE_CONFIGS /platform/role -config.sh $FILESYSTEM_ROOT /usr/bin/
137
137
138
138
# Copy sudoers configuration file
139
139
sudo cp $IMAGE_CONFIGS /sudoers/sudoers $FILESYSTEM_ROOT /etc/
Original file line number Diff line number Diff line change 1
1
[Unit]
2
2
Description=TEAMD container
3
3
Requires=database.service
4
- After=device -config.service
4
+ After=role -config.service
5
5
After=database.service
6
6
7
7
[Service]
Original file line number Diff line number Diff line change 1
1
[Unit]
2
- Description =Device -specific configuration
2
+ Description =Role -specific configuration
3
3
After =updategraph.service
4
4
5
5
[Service]
6
6
Type =oneshot
7
- ExecStart =/usr/bin/device -config.sh
7
+ ExecStart =/usr/bin/role -config.sh
8
8
9
9
[Install]
10
10
WantedBy =multi-user.target
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
- # device -config.sh
3
+ # role -config.sh
4
4
#
5
- # Script to perform tasks which configure device based on its role, etc.
6
- # To be run by device -config.service
5
+ # Script to perform tasks which configure device based on its role as determined by its minigraph
6
+ # To be run by role -config.service
7
7
#
8
8
9
9
# Disable DHCP relay service if device does not require it
You can’t perform that action at this time.
0 commit comments