summaryrefslogtreecommitdiffstats
path: root/modules.d/90numlock/numlock.sh
blob: 48aa39dc9f931f00d7600e2625bda69ed25c9f8e (plain)
1
2
3
4
5
6
7
#!/bin/sh
i=1
# 6 is the default value of the NAutoVTs option of the systemd login manager
while [ "${i}" -le 6 ]; do
    setleds -D +num < /dev/tty"${i}"
    i=$((i + 1))
done