summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/share/media/directory.subr
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-07-05 01:18:54 +0000
committerdteske <dteske@FreeBSD.org>2013-07-05 01:18:54 +0000
commit9e8c439119f43c1e577c551229913262518bc772 (patch)
tree544a14fd8c0ba1e637df707cb83ba32a80adf6d8 /usr.sbin/bsdconfig/share/media/directory.subr
parent266c009204d30c278c73ab3c0c80de525ca9cbfb (diff)
downloadFreeBSD-src-9e8c439119f43c1e577c551229913262518bc772.zip
FreeBSD-src-9e8c439119f43c1e577c551229913262518bc772.tar.gz
Set name of device to directory path (displayed during package operations).
Diffstat (limited to 'usr.sbin/bsdconfig/share/media/directory.subr')
-rw-r--r--usr.sbin/bsdconfig/share/media/directory.subr1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bsdconfig/share/media/directory.subr b/usr.sbin/bsdconfig/share/media/directory.subr
index 9a7e66c..82c1b8c 100644
--- a/usr.sbin/bsdconfig/share/media/directory.subr
+++ b/usr.sbin/bsdconfig/share/media/directory.subr
@@ -69,6 +69,7 @@ f_media_set_directory()
[ "$path" ] || return $FAILURE
f_struct_new DEVICE device_directory
+ device_directory set name "$path"
device_directory set get f_media_get_directory
device_directory set init f_media_init_directory
device_directory set shutdown f_media_shutdown_directory
OpenPOWER on IntegriCloud