This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function simpleclass(base) | |
return setmetatable(base, { | |
__call = function(t, ...) | |
local obj = setmetatable({}, t) | |
if rawget(t, '__new') then | |
t.__new(obj, ...) | |
end | |
return obj | |
end | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Alpine Linux genfstab | |
# default location for mounted root | |
SYSROOT=${SYSROOT:-/mnt} | |
in_list() { | |
local i="$1" | |
shift | |
while [ $# -gt 0 ]; do |