Initial BitNet s9pk package with SSH access

This commit is contained in:
GERTY
2026-05-12 22:31:18 +00:00
commit 6e8a8f5b59
10 changed files with 429 additions and 0 deletions

16
scripts/config_get.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -e
# Return current configuration as JSON
cat <<EOF
{
"ssh-keys": {
"type": "textarea",
"name": "SSH Authorized Keys",
"description": "Paste your SSH public key(s) here, one per line",
"nullable": false,
"default": "",
"masked": false
}
}
EOF

12
scripts/config_set.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -e
# Read config from stdin
SSH_KEYS=$(jq -r '.["ssh-keys"]' /dev/stdin)
# Save to persistent volume
mkdir -p /root/config
echo "$SSH_KEYS" > /root/config/authorized_keys
# Return success
echo "{}"

10
scripts/health_check.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -e
# Check if SSH daemon is running
if pgrep -x sshd > /dev/null; then
exit 0
else
echo "SSH daemon is not running"
exit 1
fi

27
scripts/properties.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
set -e
# Return package properties as JSON
cat <<EOF
{
"version": "1.0.0",
"data": {
"Model": {
"type": "string",
"value": "bitnet-b1.58-2B-4T",
"description": "Default LLM model",
"copyable": false,
"qr": false,
"masked": false
},
"CPU Requirements": {
"type": "string",
"value": "AVX2 support required",
"description": "Intel Haswell or AMD Excavator or newer",
"copyable": false,
"qr": false,
"masked": false
}
}
}
EOF