sd_alias: fix indent
authorSimon Guinot <simon@sequanux.org>
Mon, 8 Nov 2010 12:56:50 +0000 (13:56 +0100)
committerSimon Guinot <simon@sequanux.org>
Mon, 8 Nov 2010 12:56:50 +0000 (13:56 +0100)
sd_alias/60-persistent-storage-sd-alias.rules
sd_alias/sd_alias

index eb564d4..acfd166 100644 (file)
@@ -1,11 +1,11 @@
-KERNEL!="sd*",                 GOTO="persistent_storage_sd_alias_end"
+KERNEL!="sd*", GOTO="persistent_storage_sd_alias_end"
 
 ENV{ID_PATH}=="", IMPORT{program}="path_id %p"
 IMPORT{program}="sd_alias $env{ID_PATH}"
 
-ENV{SD_ALIAS}=="",             GOTO="persistent_storage_sd_alias_end"
+ENV{SD_ALIAS}=="", GOTO="persistent_storage_sd_alias_end"
 
-KERNEL=="sd*[!0-9]",           SYMLINK+="disk/by-alias/$env{SD_ALIAS}"
-KERNEL=="sd*[0-9]",            SYMLINK+="disk/by-alias/$env{SD_ALIAS}-part%n"
+KERNEL=="sd*[!0-9]", SYMLINK+="disk/by-alias/$env{SD_ALIAS}"
+KERNEL=="sd*[0-9]", SYMLINK+="disk/by-alias/$env{SD_ALIAS}-part%n"
 
 LABEL="persistent_storage_sd_alias_end"
index 40f3558..a17304d 100755 (executable)
@@ -4,14 +4,14 @@ config_file=/etc/sd_alias.conf
 
 get_scsi_id()
 {
-  echo $1 | sed -n "s/.*scsi-\([^-]*\).*/\1/p"
+       echo $1 | sed -n "s/.*scsi-\([^-]*\).*/\1/p"
 }
 
 get_scsi_alias()
 {
-  [ -n "$1" ] || exit 1
-  set -- $(grep $1 $config_file)
-  echo $2
+       [ -n "$1" ] || exit 1
+       set -- $(grep $1 $config_file)
+       echo $2
 }
 
 id_path=$1