Skip to content

Instantly share code, notes, and snippets.

@TheBrokenRail
TheBrokenRail / install.sh
Last active November 17, 2023 07:51
Basic MTP on postmarketOS/PinePhone. (This requires a kernel with FunctionFS!)
#!/bin/sh
set -e
# Install Scripts
install -v -m 755 umtprd-*.sh /usr/libexec
# Install Service
install -v -m 755 umtprd /etc/init.d
rc-update add umtprd
@TheBrokenRail
TheBrokenRail / Dockerfile
Last active November 17, 2023 07:47
Cross-compile a Linux kernel with FunctionFS for the PinePhone running postmarketOS v23.06.
# Change this when changing the postmarketOS version!
FROM arm64v8/alpine:3.18
# The postmarketOS Version
ENV PMOS_VERSION="v23.06"
# Use postmarketOS
RUN \
echo "https://mirror.postmarketos.org/postmarketos/${PMOS_VERSION}" > temp && \
cat /etc/apk/repositories >> temp && \