Format scripts with shfmt
This commit is contained in:
parent
7aa6142adb
commit
3599220815
2 changed files with 66 additions and 70 deletions
|
@ -1,7 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
run_hook ()
|
||||
{
|
||||
run_hook() {
|
||||
[ -d /dev/pts ] || mkdir -p /dev/pts
|
||||
mount -t devpts devpts /dev/pts
|
||||
|
||||
|
@ -9,8 +8,7 @@ run_hook ()
|
|||
/usr/sbin/dropbear -E -s -j -k
|
||||
}
|
||||
|
||||
run_cleanuphook ()
|
||||
{
|
||||
run_cleanuphook() {
|
||||
umount /dev/pts
|
||||
rm -R /dev/pts
|
||||
if [ -f /var/run/dropbear.pid ]; then
|
||||
|
|
|
@ -47,8 +47,7 @@ generate_keys() {
|
|||
done
|
||||
}
|
||||
|
||||
build ()
|
||||
{
|
||||
build() {
|
||||
#
|
||||
# Begin real processing
|
||||
#
|
||||
|
@ -89,8 +88,7 @@ build ()
|
|||
add_runscript
|
||||
}
|
||||
|
||||
help ()
|
||||
{
|
||||
help() {
|
||||
cat <<HELPEOF
|
||||
This hook is meant to be used in conjunction with mkinitcpio-netconf and/or
|
||||
mkinitcpio-ppp. It DOES NOT provide any default shell. It will only install
|
||||
|
|
Loading…
Reference in a new issue