Browse Source
POSIX does not mandate that echo support the -n parameter.
printf has more well-defined behavior.
(cherry picked from commit 5899f2f516
)


16 changed files with 21 additions and 19 deletions
@ -1,2 +1,2 @@
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh |
||||
[ -c /dev/watchdog ] && echo -n 'V' > /dev/watchdog |
||||
[ -c /dev/watchdog ] && printf 'V' > /dev/watchdog |
||||
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh |
||||
|
||||
[ -b "/dev/mapper/$2" ] && exit 0 |
||||
echo -n test >/keyfile |
||||
printf test >/keyfile |
||||
/sbin/cryptsetup luksOpen "$1" "$2" </keyfile |
||||
|
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh |
||||
|
||||
[ -b /dev/mapper/$2 ] && exit 0 |
||||
echo -n test >/keyfile |
||||
printf test >/keyfile |
||||
/sbin/cryptsetup luksOpen $1 $2 </keyfile |
||||
|
||||
|
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh |
||||
|
||||
[ -b /dev/mapper/$2 ] && exit 0 |
||||
echo -n test >/keyfile |
||||
printf test >/keyfile |
||||
/sbin/cryptsetup luksOpen $1 $2 </keyfile |
||||
|
||||
|
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh |
||||
|
||||
[ -b /dev/mapper/$2 ] && exit 0 |
||||
echo -n test >/keyfile |
||||
printf test >/keyfile |
||||
/sbin/cryptsetup luksOpen $1 $2 </keyfile |
||||
|
||||
|
Loading…
Reference in new issue