summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hotplugd
diff options
context:
space:
mode:
authorsobrado <sobrado@openbsd.org>2008-11-06 11:19:24 +0000
committersobrado <sobrado@openbsd.org>2008-11-06 11:19:24 +0000
commit01cb5e7c07a93c30c0cc38bf38817986017138ca (patch)
tree01b9101e2196c30fd61814db9bd62b4224c0124d /usr.sbin/hotplugd
parentinput and volume twiddles (diff)
downloadwireguard-openbsd-01cb5e7c07a93c30c0cc38bf38817986017138ca.tar.xz
wireguard-openbsd-01cb5e7c07a93c30c0cc38bf38817986017138ca.zip
use spacing consistently to make example shorter and more readable;
improve indentation.
Diffstat (limited to 'usr.sbin/hotplugd')
-rw-r--r--usr.sbin/hotplugd/hotplugd.88
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/hotplugd/hotplugd.8 b/usr.sbin/hotplugd/hotplugd.8
index e601162a717..9733c69e3c2 100644
--- a/usr.sbin/hotplugd/hotplugd.8
+++ b/usr.sbin/hotplugd/hotplugd.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hotplugd.8,v 1.7 2008/11/06 09:16:25 ian Exp $
+.\" $OpenBSD: hotplugd.8,v 1.8 2008/11/06 11:19:24 sobrado Exp $
.\"
.\" Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
.\"
@@ -98,26 +98,22 @@ DEVNAME=$2
case $DEVCLASS in
2)
# disk devices
-
disklabel=`/sbin/disklabel $DEVNAME 2\*(Gt&1 | \e
- sed -n '/^label: /s/^label: //p'`
+ sed -n '/^label: /s/^label: //p'`
case $disklabel in
Sony*DSC*)
# Sony DSC camera
mount -o nodev,nosuid /dev/"$DEVNAME"i /mnt/camera
;;
esac
-
;;
3)
# network devices; use hostname.if if found, else dhclient.
-
if [ -f /etc/hostname.$DEVNAME ]; then
sh /etc/netstart $DEVNAME
else
/sbin/dhclient $DEVNAME
fi
-
;;
esac
.Ed