File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1111
1212[ -z " $BASH " ] && echo " Must use bash" >&2 && exit 1
1313
14+ umask 022
15+
1416SLOT_NAME=$1
1517SLOT_DEV_BY_PATH=$2
1618
1719VDEV_ID_CONF=/etc/vdev_id.conf
1820
1921PATCHED_COMMENT_TAG=" # Patched by $( realpath " $0 " ) via /usr/lib/udev/rules.d/67-ubm.rules (or 68-0-custom-aliases.rules)"
2022
21- [ -z " $SLOT_NAME " ] && perror " SLOT_NAME not given" && exit 0
22- [ -z " $SLOT_DEV_BY_PATH " ] && perror " SLOT_DEV_BY_PATH not given" && exit 0
23+ [ -z " $SLOT_NAME " ] && echo " SLOT_NAME not given" >&2 && exit 0
24+ [ -z " $SLOT_DEV_BY_PATH " ] && echo " SLOT_DEV_BY_PATH not given" >&2 && exit 0
2325
2426generate_vdev_id_conf () {
2527 local TMPFILE
@@ -60,7 +62,7 @@ generate_vdev_id_conf() {
6062
6163 # sort entries, keeping comments on top
6264 sed -i ' s/#/\x0/g' " $TMPFILE "
63- sort -o " $TMPFILE " " $TMPFILE "
65+ sort --version-sort - o " $TMPFILE " " $TMPFILE "
6466 sed -i ' s/\x0/#/g' " $TMPFILE "
6567
6668 mv " $TMPFILE " " $VDEV_ID_CONF "
You can’t perform that action at this time.
0 commit comments