Skip to content
Permalink
Browse files

Prep RPi Zero Build 2

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 22, 2019
1 parent c62309e commit 92dcb45686f47f265a5133d8cc72aed11f0357ef
Showing with 11 additions and 36 deletions.
  1. +1 −10 build/036-php72
  2. +1 −10 build/055-check_mk
  3. +5 −6 build/170-cockpit
  4. +4 −10 build/171-cockpit
@@ -15,16 +15,7 @@ apt -y autoremove
# Install PHP 7.2

# Use Raspbian repo for Pi, Sury's Debian Repo for others.
if [[ $platform = "0" ]] ||
[[ $platform = "1" ]] ||
[[ $platform = "2" ]] ||
[[ $platform = "3" ]] ||
[[ $platform = "4" ]] ||
[[ $platform = "5" ]] ||
[[ $platform = "6" ]] ||
[[ $platform = "7" ]] ||
[[ $platform = "8" ]] ||
[[ $platform = "9" ]]; then
if [[ $platform < 10 ]]; then
echo "deb http://mirrordirector.raspbian.org/raspbian/ buster main contrib non-free rpi" > /etc/apt/sources.list.d/10-buster.list
echo "Package: *
Pin: release n=stretch
@@ -6,16 +6,7 @@
platform=$(/usr/local/bin/nems-info platform)

# Use Raspbian repo for Pi, Sury's Debian Repo for others.
if [[ $platform = "0" ]] ||
[[ $platform = "1" ]] ||
[[ $platform = "2" ]] ||
[[ $platform = "3" ]] ||
[[ $platform = "4" ]] ||
[[ $platform = "5" ]] ||
[[ $platform = "6" ]] ||
[[ $platform = "7" ]] ||
[[ $platform = "8" ]] ||
[[ $platform = "9" ]]; then
if [[ $platform < 10 ]]; then
repo="-t buster"
else
repo=""
@@ -1,10 +1,11 @@
#!/bin/bash

# move to self-compile
# https://tech.maweki.de/installing-cockpit-on-raspbian.html
# https://github.com/cockpit-project/cockpit/releases

exit
platform=$(/usr/local/bin/nems-info platform)
if [[ $platform = "0" ]] ||
[[ $platform = "1" ]]; then
echo "Incompatible SBC. Leaving Cockpit off."
else

# Update *before* adding Stretch Backports
apt update
@@ -43,5 +44,3 @@ else
# Install Cockpit
apt update
apt -t stretch-backports -y install cockpit

fi
@@ -2,15 +2,9 @@

## Remove Cockpit theme and replace with symlink to the NEMS theme
platform=$(/usr/local/bin/nems-info platform)
if [[ $platform = "0" ]] ||
[[ $platform = "1" ]]; then
echo "Incompatible SBC. Leaving Cockpit off."
else

if [[ -d /usr/share/cockpit/branding/debian/ ]]; then
rm -rf /usr/share/cockpit/branding/debian
fi
mkdir -p /usr/share/cockpit/branding/debian
cp -f /root/nems/nems-migrator/data/1.4/cockpit/branding/* /usr/share/cockpit/branding/debian/

if [[ -d /usr/share/cockpit/branding/debian/ ]]; then
rm -rf /usr/share/cockpit/branding/debian
fi
mkdir -p /usr/share/cockpit/branding/debian
cp -f /root/nems/nems-migrator/data/1.4/cockpit/branding/* /usr/share/cockpit/branding/debian/

0 comments on commit 92dcb45

Please sign in to comment.
You can’t perform that action at this time.