summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-20 17:27:28 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-06-20 17:27:28 +0000
commitb44b04b0c5a7f29ec6d0d5424bb8757629d5902b (patch)
tree91d966b3e6e97103a1e886a138656cd01d356012
parent5c6314613bab7d9ef9688ef8e5270520f10949ff (diff)
downloadutil-linux-old-b44b04b0c5a7f29ec6d0d5424bb8757629d5902b.tar.gz
Set default device name for solaris
-rw-r--r--fdisk/cfdisk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c
index 7faa44a3..ae1f50a1 100644
--- a/fdisk/cfdisk.c
+++ b/fdisk/cfdisk.c
@@ -112,6 +112,9 @@
#elif defined(__FreeBSD__)
#define DEFAULT_DEVICE "/dev/ad0"
#define ALTERNATE_DEVICE "/dev/da0"
+#elif defined(__sun__)
+#define DEFAULT_DEVICE "/dev/rdsk/c0d0"
+#define ALTERNATE_DEVICE "/dev/rdsk/c0t0d0"
#else
#define DEFAULT_DEVICE "/dev/hda"
#define ALTERNATE_DEVICE "/dev/sda"