Only execute luksrku when an actual server config is present
Previously, it was always executed (although it shouldn't have made it into the image if no /etc/luksrku-server.bin were present).
This commit is contained in:
parent
781b10c0c9
commit
625998fc8a
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright 2016 Johannes Bauer <joe@johannes-bauer.com>
|
# Copyright 2016-2017 Johannes Bauer <joe@johannes-bauer.com>
|
||||||
# Released under GPLv3
|
# Released under GPLv3
|
||||||
|
|
||||||
PREREQ="lvm2"
|
PREREQ="lvm2"
|
||||||
@ -21,13 +21,12 @@ case $1 in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
. /scripts/functions
|
. /scripts/functions
|
||||||
configure_networking
|
|
||||||
|
|
||||||
#ETH_DEV="eno1"
|
if [ ! -f /etc/luksrku-server.bin ]; then
|
||||||
#ETH_IP="192.168.1.29"
|
exit 0
|
||||||
#ETH_NETMASK="255.255.255.0"
|
fi
|
||||||
#/bin/ifconfig "$ETH_DEV" up "$ETH_IP" netmask "$ETH_NETMASK"
|
|
||||||
#/bin/ip route add default dev "$ETH_DEV"
|
configure_networking
|
||||||
/sbin/luksrku --server-mode -v -k /etc/luksrku-server.bin
|
/sbin/luksrku --server-mode -v -k /etc/luksrku-server.bin
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user