We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06b857f commit 3b6c4a9Copy full SHA for 3b6c4a9
usr/lib/systemd/system/[email protected]
@@ -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