1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-14 19:02:45 +03:00

Add .editorconfig and replace spaces with tabs

This commit is contained in:
Natanael Copa 2023-05-19 04:13:16 +00:00 committed by Jake Buchholz Göktürk
parent 7d9a280a67
commit 000f41a48b
36 changed files with 968 additions and 942 deletions

18
.editorconfig Normal file
View File

@ -0,0 +1,18 @@
# https://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[Makefile]
indent_size = 8
indent_style = tab
[*.{md,yml,yaml}]
indent_style = space
indent_size = 2

View File

@ -1,5 +1,5 @@
#!/bin/sh
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# Tiny Cloud - Instance MetaData Service client
@ -9,7 +9,7 @@
. "$LIBDIR/tiny-cloud/common"
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
cat <<EOT
cat <<-EOT
Usage: imds [-h] { -e | +e | +n | +s | +t | @<alias> | <imds-path> } ...
-h : help
-e / +e : ignore / catch errors

View File

@ -1,5 +1,5 @@
#!/sbin/openrc-run
# vim:set ts=8 noet ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
description="Tiny Cloud Bootstrap - main phase"

View File

@ -1,5 +1,5 @@
#!/sbin/openrc-run
# vim:set ts=8 noet ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
description="Tiny Cloud Bootstrap - early phase"

View File

@ -1,5 +1,5 @@
#!/sbin/openrc-run
# vim:set ts=8 noet ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
description="Tiny Cloud Bootstrap - final phase"

View File

@ -1,5 +1,5 @@
#!/sbin/openrc-run
# vim:set ts=8 noet ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
description="Tiny Cloud Bootstrap - net phase"

View File

@ -1,5 +1,5 @@
#!/bin/sh
# vim:set ts=2 et:
# vim:set ft=sh:
# NOTE: The mdev-conf APK handles this now, but only for xvd or sd links (not
# both)

View File

@ -1,5 +1,5 @@
#!/bin/sh
# vim:set ts=4 et:
# vim:set ft=sh:
set -e

View File

@ -1,5 +1,5 @@
# Tiny Cloud - Init Functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
INIT_ACTIONS_EARLY="$(replace_word set_default_interfaces set_network_interfaces $INIT_ACTIONS_EARLY)"

View File

@ -1,5 +1,5 @@
# AWS Instance MetaData Service variables and functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
IMDS_HEADER="X-aws-ec2-metadata-token"

View File

@ -1,5 +1,5 @@
# AWS mdev Hotplug Modules
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
# makes symlinks for NVMe devices that correlate to AWS EBS sd/xvd devices

View File

@ -1,5 +1,5 @@
# Azure Instance MetaData Service variables and functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
IMDS_HEADER="Metadata"

View File

@ -1,5 +1,5 @@
# Google Cloud Instance MetaData Service variables and functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
IMDS_HEADER="Metadata-Flavor"

View File

@ -1,5 +1,5 @@
# NoCloud Instance Metadata
# vim: ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
NOCLOUD_FILES="meta-data user-data vendor-data network-config"

View File

@ -1,5 +1,5 @@
# OCI Instance MetaData Service variables and functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
IMDS_HEADER="Authorization"

View File

@ -1,5 +1,5 @@
# Tiny Cloud - common script functions
# vim: ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
# set defaults

View File

@ -1,5 +1,5 @@
# Tiny Cloud - Init Functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
# set defaults

View File

@ -1,5 +1,5 @@
# Tiny Cloud - mdev hotplug functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
# generic helper function to install mdev rules

View File

@ -1,5 +1,5 @@
# Script UserData Functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
INIT_ACTIONS_MAIN="$(insert_after set_hostname \

View File

@ -1,5 +1,5 @@
# CloudConfig UserData Functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
# TODO

View File

@ -1,5 +1,5 @@
# Missing UserData Functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
init__missing_userdata() {

View File

@ -1,5 +1,5 @@
# Script UserData Functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
init__run_userdata() {

View File

@ -1,5 +1,5 @@
# Unknown UserData Functions
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# shellcheck shell=sh
init__unknown_userdata() {

View File

@ -1,5 +1,5 @@
#!/bin/sh
# vim:set ts=4 et:
# vim:set ft=sh:
set -e

View File

@ -1,5 +1,5 @@
#!/bin/sh
# vim: ts=4 et ft=sh:
# vim:set ft=sh:
# Sync interface's network configuration with IMDS

View File

@ -1,5 +1,5 @@
#!/bin/sh
# vim:set ts=4 et ft=sh:
# vim:set ft=sh:
# Tiny Cloud
@ -9,7 +9,7 @@ set -e
. "$LIBDIR/tiny-cloud/common"
usage() {
cat <<EOF
cat <<-EOF
Usage: ${0##*/} [-h | --help] { early | net | main | final | --bootstrap [complete|incomplete|status] | --setup }
EOF
}

View File

@ -1,4 +1,5 @@
#!/usr/bin/env atf-sh
# vim:set ft=sh
# shellcheck shell=sh
. $(atf_get_srcdir)/test_env.sh

View File

@ -2,7 +2,7 @@
prog=${0##*/}
usage() {
cat <<EOF
cat <<-EOF
usage: wget [-cqS] [--spider] [-O FILE] [-o LOGFILE] [--header STR]
[--post-data STR | --post-file FILE] [-Y on/off]
[-P DIR] [-U AGENT] [-T SEC] URL...

View File

@ -1,4 +1,5 @@
#!/usr/bin/env atf-sh
# vim:set ft=sh
# shellcheck shell=sh
. $(atf_get_srcdir)/test_env.sh

View File

@ -1,4 +1,5 @@
#!/usr/bin/env atf-sh
# vim:set ft=sh
# shellcheck shell=sh
. $(atf_get_srcdir)/test_env.sh

View File

@ -1,4 +1,5 @@
#!/usr/bin/env atf-sh
# vim:set ft=sh
# shellcheck shell=sh
. $(atf_get_srcdir)/test_env.sh

View File

@ -1,4 +1,5 @@
#!/usr/bin/env atf-sh
# vim:set ft=sh
# shellcheck shell=sh
. $(atf_get_srcdir)/test_env.sh

View File

@ -1,4 +1,5 @@
#!/usr/bin/env atf-sh
# vim:set ft=sh
# shellcheck shell=sh
. $(atf_get_srcdir)/test_env.sh

View File

@ -1,4 +1,5 @@
#!/usr/bin/env atf-sh
# vim:set ft=sh
# shellcheck shell=sh
. $(atf_get_srcdir)/test_env.sh

View File

@ -1,4 +1,5 @@
#!/usr/bin/env atf-sh
# vim:set ft=sh
# shellcheck shell=sh
. $(atf_get_srcdir)/test_env.sh

View File

@ -1,5 +1,5 @@
#!/bin/sh
# vim: set ts=8 noet:
# vim:set ft=sh:
# Tiny Cloud IMDS ifupdown-ng executor