r2676 - dists/trunk/live-helper/helpers
daniel at alioth.debian.org
daniel at alioth.debian.org
Sat Aug 4 15:08:49 UTC 2007
Author: daniel
Date: 2007-08-04 15:08:49 +0000 (Sat, 04 Aug 2007)
New Revision: 2676
Modified:
dists/trunk/live-helper/helpers/lh_chroot_hostname
Log:
Modified: dists/trunk/live-helper/helpers/lh_chroot_hostname
===================================================================
--- dists/trunk/live-helper/helpers/lh_chroot_hostname 2007-08-04 15:04:26 UTC (rev 2675)
+++ dists/trunk/live-helper/helpers/lh_chroot_hostname 2007-08-04 15:08:49 UTC (rev 2676)
@@ -1,6 +1,6 @@
#!/bin/sh
-# lh_chroot_hostname(1) - manage /etc/hostname
+# lh_chroot_hostname(1) - manage /bin/hostname
# Copyright (C) 2006-2007 Daniel Baumann <daniel at debian.org>
#
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
@@ -18,7 +18,7 @@
done
# Setting static variables
-DESCRIPTION="manage /etc/hostname"
+DESCRIPTION="manage /bin/hostname"
HELP=""
USAGE="${PROGRAM} {install|remove} [--force]"
@@ -54,6 +54,8 @@
# Create hostname file
echo "localhost.localdomain" > chroot/etc/hostname
+ Echo_message "Configuring file /bin/hostname"
+
# Create hostname program
cat > chroot/bin/hostname << EOF
@@ -77,6 +79,8 @@
# Creating lock file
Create_lockfile .lock
+ Echo_message "Deconfiguring file /bin/hostname"
+
# Restore hostname file
mv chroot/bin/hostname.orig chroot/bin/hostname
More information about the debian-live-changes
mailing list