Skip to content

Commit

Permalink
Merge pull request #9 from shailparmar03/main
Browse files Browse the repository at this point in the history
vicharak-config: debian: add post installation script
  • Loading branch information
djkabutar authored Sep 28, 2024
2 parents 10ccdae + e5ff973 commit 8e35a28
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
vicharak-config (0.1.3) jammy; urgency=medium

* vicharak-config: debian: add post installation script

-- shailparmar03 <shailparmar26@gmail.com> Sat, 28 Sep 2024 18:00:26 +0530

vicharak-config (0.1.2) jammy; urgency=medium

* vicharak-config: tui: Set board specific header pin count
Expand Down
8 changes: 8 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -e

board=$(cat /sys/firmware/devicetree/base/model | awk '{print tolower($3)}')
echo "deb http://apt.vicharak.in/ stable main" > /etc/apt/sources.list.d/vicharak.list
echo "deb http://apt.vicharak.in/ ${board}-stable ${board}" >> /etc/apt/sources.list.d/vicharak.list

exit 0
4 changes: 4 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ include /usr/share/dpkg/architecture.mk
%:
dh $@

override_dh_install:
chmod 755 debian/postinst
dh_install

override_dh_builddeb:
dh_builddeb -- -Zxz

0 comments on commit 8e35a28

Please sign in to comment.