base_role/overlay/Gentoo/usr/local/share/genkernel/overlay.bash
2024-01-09 15:39:19 +00:00

29 lines
519 B
Bash
Executable File

#!/bin/sh
ROLE=gpgkey
cd /usr/local/share/genkernel/overlay
[ -d dev ] || mkdir dev
cd dev
[ -e urandom ] || mknod urandom c 1 9
chmod 666 urandom
cd ..
[ -d sbin ] || mkdir sbin
cd sbin
[ -f staticgpggrid ] || cp -p /usr/local/bin/staticgpggrid .
[ -f staticgpg ] || cp -p /usr/local/bin/staticgpg .
chmod 755 static*
cd ..
cd /
cat /usr/local/share/genkernel/overlay.list | \
tar cf - -T - \
tar xvf - -C /usr/local/share/genkernel/overlay
find -L /usr/local/share/genkernel/overlay -type l
exit 0