From 861bbbdeb0cf25f6fba5883fa0d0d15dc33c3da3 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 6 Mar 2005 13:41:18 +0000 Subject: [PATCH] Read the number of device files to create on the command line if provided. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2921 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/mkdev/mkdev.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prog/mkdev/mkdev.sh b/prog/mkdev/mkdev.sh index f5634218..ab1bd463 100755 --- a/prog/mkdev/mkdev.sh +++ b/prog/mkdev/mkdev.sh @@ -3,7 +3,8 @@ # Here you can set several defaults. # The number of devices to create (max: 256) -NUMBER=32 +# If not provided on the command line, default to 32 +NUMBER=${1:-32} # The owner and group of the devices OUSER=root