initramfs scripts will only include luksrku if it's needed
This commit is contained in:
parent
0d4d2220b2
commit
192df4470e
@ -21,5 +21,8 @@ esac
|
|||||||
|
|
||||||
. /usr/share/initramfs-tools/hook-functions
|
. /usr/share/initramfs-tools/hook-functions
|
||||||
|
|
||||||
|
if [ ! -f /etc/luksrku-server.bin ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
cp /etc/luksrku-server.bin ${DESTDIR}/etc/
|
cp /etc/luksrku-server.bin ${DESTDIR}/etc/
|
||||||
copy_exec /usr/local/sbin/luksrku /sbin
|
copy_exec /usr/local/sbin/luksrku /sbin
|
||||||
|
@ -21,9 +21,11 @@ case $1 in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
ETH_DEV="eno1"
|
ETH_DEV="eno1"
|
||||||
/bin/ifconfig $ETH_DEV up 192.168.1.29 netmask 255.255.255.0
|
ETH_IP="192.168.1.29"
|
||||||
/bin/ip route add default dev $ETH_DEV
|
ETH_NETMASK="255.255.255.0"
|
||||||
#/sbin/luksrku --server-mode -v -k /etc/luksrku-server.bin
|
|
||||||
/bin/sh
|
/bin/ifconfig "$ETH_DEV" up "$ETH_IP" netmask "$ETH_NETMASK"
|
||||||
|
/bin/ip route add default dev "$ETH_DEV"
|
||||||
|
/sbin/luksrku --server-mode -v -k /etc/luksrku-server.bin
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user