[Unit] Description=PS3 GPU Support After=network.target [Service] Type=oneshot RemainAfterExit=true ExecStart=/bin/bash -c 'echo "Starting ps3gpu"; if [ ! -e /dev/ps3gpu_vram ]; then module="ps3fb"; major=$(awk "\$2==\"$module\" {print \$1}" /proc/devices); mknod /dev/ps3gpu_vram c ${major} 0; mknod /dev/ps3gpu_fifo c ${major} 1; mknod /dev/ps3gpu_ctrl c ${major} 2; mknod /dev/ps3gpu_driver c ${major} 3; mknod /dev/ps3gpu_reports c ${major} 4; fi' ExecStop=/bin/bash -c 'echo "Stopping ps3gpu"; if [ -e /dev/ps3gpu_vram ]; then rm /dev/ps3gpu_vram; rm /dev/ps3gpu_fifo; rm /dev/ps3gpu_ctrl; rm /dev/ps3gpu_driver; rm /dev/ps3gpu_reports; fi' [Install] WantedBy=multi-user.target