13 lines
456 B
Bash
13 lines
456 B
Bash
#!/bin/bash -e
|
|
|
|
install -m 755 files/install-greengrass.sh "${ROOTFS_DIR}/bin/"
|
|
install -m 644 files/greengrass.service /etc/systemd/system/greengrass.service
|
|
install -m 755 files/S02greengrass /etc/init.d/S02greengrass
|
|
|
|
on_chroot << EOF
|
|
sed -i -e 's/$/"splash plymouth.ignore-serial-consoles cgroup_enable=memory cgroup_memory=1"/' /boot/cmdline.txt
|
|
/bin/install-greengrass.sh bootstrap-greengrass
|
|
modprobe configs
|
|
systemctl enable greengrass.service
|
|
EOF
|