initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

15
nbd/nbd.install Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
post_install() {
getent group 'nbd' &> '/dev/null' || groupadd 'nbd' > '/dev/null'
getent passwd 'nbd' &> '/dev/null' || useradd -g 'nbd' -d '/var/empty' \
-c 'Network Block Devices' -s '/bin/nologin' 'nbd' > '/dev/null'
nbd_shell="$(getent passwd 'ntp' | cut -d: -f7)"
if [ "${nbd_shell}" != '/bin/nologin' ]; then
chsh -s '/bin/nologin' 'nbd' &> '/dev/null'
fi
}
post_upgrade(){
post_install
}