diff options
Diffstat (limited to 'meta-google/recipes-google/ncsi/files/gbmc-ncsi-alias.service.in')
-rw-r--r-- | meta-google/recipes-google/ncsi/files/gbmc-ncsi-alias.service.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-alias.service.in b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-alias.service.in new file mode 100644 index 0000000000..93ad535890 --- /dev/null +++ b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-alias.service.in @@ -0,0 +1,12 @@ +[Unit] +BindsTo=ncsid@@NCSI_IF@.service + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/ip link set @NCSI_IF@ alias ncsi +ExecStop=/usr/bin/ip link set @NCSI_IF@ alias '' + +[Install] +WantedBy=nic-hostful@@NCSI_IF@.target +WantedBy=nic-hostless@@NCSI_IF@.target |