Skip to content

Commit 3b6c4a9

Browse files
committed
add product name service
1 parent 06b857f commit 3b6c4a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Unit]
2+
Description=Change Product Name
3+
4+
[Service]
5+
Type=oneshot
6+
RemainAfterExit=yes
7+
ExecStart=/bin/sh -c "echo %i > /tmp/product_name && mount --bind /tmp/product_name /sys/devices/virtual/dmi/id/product_name"
8+
ExecStop=/bin/sh -c "umount /sys/devices/virtual/dmi/id/product_name"
9+
10+
[Install]
11+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)