X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=etc%2Fgrml%2Fpump-script;fp=etc%2Fgrml%2Fpump-script;h=0000000000000000000000000000000000000000;hp=2d0ef13a2a7fea13dcf7b6309d6d0135ec4bea83;hb=91d88e67c7e46049809a9b79b6aa7841ecda3c7d;hpb=98b0e91f4ac3801dd6d084f39e7c112e211e0a40 diff --git a/etc/grml/pump-script b/etc/grml/pump-script deleted file mode 100644 index 2d0ef13..0000000 --- a/etc/grml/pump-script +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# PUMP Script -# $1 Calling circumstance (up, renewal, down) -# $2 interface -# $3 ip - -# Exit early, if we're not being called for the initial lease -[ "$1" != "up" ] && exit 0 - -# See if we're needed at all, only run when booted with dhcphostname -for i in $(cat /proc/cmdline) -do - if [ "$i" = "dhcphostname" ] - then - # dhcphostname is set, get the PTR for the ip - hostname=$(host $3 | awk '{ print substr($5, 0, length($5)-1) }') - if [ -n "$hostname" ] - then - echo $hostname > /etc/hostname - fi - fi -done