Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zijiren233/xanmod-arm64
https://github.com/zijiren233/xanmod-arm64
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zijiren233/xanmod-arm64
- Owner: zijiren233
- Created: 2024-06-13T15:00:00.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-01T02:53:09.000Z (about 1 month ago)
- Last Synced: 2024-10-02T09:09:29.860Z (about 1 month ago)
- Language: Shell
- Size: 114 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to use
## Debian/Ubuntu
```bash
api_url="https://api.github.com/repos/zijiren233/xanmod-arm64/releases/latest"release_info=$(curl -s "$api_url")
headers_url=$(echo "$release_info" | grep -o '"browser_download_url": "[^"]*linux-headers[^"]*"' | cut -d '"' -f 4)
image_url=$(echo "$release_info" | grep -o '"browser_download_url": "[^"]*linux-image[^"]*"' | cut -d '"' -f 4)mkdir -p /tmp/xanmod
rm -rf /tmp/xanmod/*
curl -L -o /tmp/xanmod/linux-headers.deb "$headers_url"
curl -L -o /tmp/xanmod/linux-image.deb "$image_url"
dpkg -i /tmp/xanmod/linux-*.deb
rm -rf /tmp/xanmod
```## Other
```bash
api_url="https://api.github.com/repos/zijiren233/xanmod-arm64/releases/latest"release_info=$(curl -s "$api_url")
kernel_url=$(echo "$release_info" | grep -o '"browser_download_url": "[^"]*kernel-[^"]*"' | cut -d '"' -f 4)
mkdir -p /tmp/xanmod
rm -rf /tmp/xanmod/*
curl -L -o /tmp/xanmod/kernel.tar.gz2 "$kernel_url"
tar --no-same-owner -xzvf /tmp/xanmod/kernel.tar.gz2 -C /
cd /boot
for v in $(ls vmlinuz-* | sed s/vmlinuz-//g); do
mkinitramfs -k -o initrd.img-${v} ${v}
done
update-grub
rm -rf /tmp/xanmod
```