File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,26 @@ set -eou pipefail
44
55. oks-lib.sh
66
7+ command_on_path blockdev
78command_on_path lpinfo
89command_on_path systemctl
910command_on_path sed
1011command_on_path oks
1112
13+ eject " $CD_DEV "
14+ echo -e " \nInsert OKS HSM Auth CD, close drive tray,"
15+ read -p " then press Enter to continue..."
16+ COUNT=5
17+ while [ $COUNT -gt 0 ]; do
18+ if ! blockdev --getsize64 " $CD_DEV " > /dev/null 2>&1 ; then
19+ COUNT=$(( $COUNT - 1 ))
20+ echo " Waiting for CD drive to \" settle\" "
21+ sleep 10
22+ else
23+ break
24+ fi
25+ done
26+
1227# NixOS generates `printers.conf` for us but we can't know the printers SN in
1328# advance of the first ceremony where it's used. As a work-around we query cups
1429# for the serial number for the attached printer and then swap it in
You can’t perform that action at this time.
0 commit comments