Skip to content

Commit 40ae5c2

Browse files
committed
save install script
1 parent b98d04f commit 40ae5c2

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

test/install.tegra.artifacts.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# add jenkins user to sudo group
5+
# add the following line to /etc/sudoers for jenkins user, here nvidia
6+
# nvidia ALL=(root) NOPASSWD: /sbin/reboot, /sbin/install.tegra.artifacts.sh
7+
8+
RELEASE=$(ls lib/modules)
9+
cp -R lib/modules/* /lib/modules
10+
[[ -f /boot/Image ]] && rm /boot/Image
11+
[[ -f /boot/initrd.img ]] && rm /boot/initrd.img
12+
cp boot/Image /boot/Image-$RELEASE
13+
ln -s /boot/Image-$RELEASE /boot/Image
14+
update-initramfs -uk $RELEASE
15+
ln -s /boot/initrd.img-$RELEASE /boot/initrd.img
16+
cp boot/*.dtbo /boot/
17+

0 commit comments

Comments
 (0)