mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-22 09:53:40 +08:00
Serial
This commit is contained in:
7
serial/serial.sh
Normal file
7
serial/serial.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
permanent="DSM"
|
||||
serialstart="2000"
|
||||
serialnum="$(echo "$serialstart" | tr ' ' '\n' | sort -R | tail -1)$permanent"$(printf "%06d" $((RANDOM % 30000 + 1)))
|
||||
|
||||
echo $serialnum
|
||||
Reference in New Issue
Block a user