summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-03 16:35:47 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-03 16:55:25 +0100
commit18a0c2f201348def02942d4bb29eda3d4c31c33f (patch)
tree31c1ed5973e747532ba01061b00fa333677e8bc2 /sbin
parentdc5d05c4372c940655fc85b2a81155721e2976ac (diff)
downloaditzks-systems-18a0c2f201348def02942d4bb29eda3d4c31c33f.tar.gz
itzks-systems-18a0c2f201348def02942d4bb29eda3d4c31c33f.tar.bz2
itzks-systems-18a0c2f201348def02942d4bb29eda3d4c31c33f.zip
White-space cleanup.
Diffstat (limited to 'sbin')
-rwxr-xr-xsbin/diskless-workstation-shell6
-rwxr-xr-xsbin/itzks-display-shell6
-rwxr-xr-xsbin/itzks-switch-to-systemd-networkd6
-rwxr-xr-xsbin/itzks-transfer-cleaner2
4 files changed, 10 insertions, 10 deletions
diff --git a/sbin/diskless-workstation-shell b/sbin/diskless-workstation-shell
index 627e96d..baaa1fe 100755
--- a/sbin/diskless-workstation-shell
+++ b/sbin/diskless-workstation-shell
@@ -23,13 +23,13 @@ VERSION=0.1
DLW_SHELL="bash"
CHROOT="/srv/ltsp/i386/"
-test -e "$CHROOT" || {
+test -e "$CHROOT" || {
echo "ERROR: Diskless workstation chroot does not exist at $CHROOT."
exit -1
}
-[ "x$USER" == "xroot" ] || {
- echo "ERROR: Diskless workstation management has to be performed as root."
+[ "x$USER" == "xroot" ] || {
+ echo "ERROR: Diskless workstation management has to be performed as root."
exit -2
}
diff --git a/sbin/itzks-display-shell b/sbin/itzks-display-shell
index db05bb8..4e6f770 100755
--- a/sbin/itzks-display-shell
+++ b/sbin/itzks-display-shell
@@ -23,13 +23,13 @@ VERSION=0.1
DISPLAY_SHELL="bash"
CHROOT="/srv/ltsp/amd64/"
-test -e "$CHROOT" || {
+test -e "$CHROOT" || {
echo "ERROR: ITZkS display system chroot does not exist at $CHROOT."
exit -1
}
-[ "x$USER" == "xroot" ] || {
- echo "ERROR: ITZkS display system management has to be performed as root."
+[ "x$USER" == "xroot" ] || {
+ echo "ERROR: ITZkS display system management has to be performed as root."
exit -2
}
diff --git a/sbin/itzks-switch-to-systemd-networkd b/sbin/itzks-switch-to-systemd-networkd
index 99edc15..cb7a8c2 100755
--- a/sbin/itzks-switch-to-systemd-networkd
+++ b/sbin/itzks-switch-to-systemd-networkd
@@ -24,9 +24,9 @@ apt-get remove -q -y --purge resolvconf
systemctl disable NetworkManager
systemctl enable systemd-networkd.service
-systemctl enable systemd-resolved.service
-systemctl start systemd-resolved.service
-rm /etc/resolv.conf
+systemctl enable systemd-resolved.service
+systemctl start systemd-resolved.service
+rm /etc/resolv.conf
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
cat > /etc/systemd/network/20-dhcp.network << EOF
diff --git a/sbin/itzks-transfer-cleaner b/sbin/itzks-transfer-cleaner
index 9e848fc..4bd530c 100755
--- a/sbin/itzks-transfer-cleaner
+++ b/sbin/itzks-transfer-cleaner
@@ -69,7 +69,7 @@ function remove_directories () {
done
}
-# main
+# main
check_host "tjener"
check_root