sonic-buildimage/platform/broadcom/sonic-platform-modules-ragile/debian/platform-modules-ragile-ra-b6910-64c.postinst
pettershao-ragilenetworks bce4aa1412
[ragile] adapter for kernel 5.x (#10762)
Why I did it
Ragile adapter ra-b6510-32c ra-b6510-48v8c ra-b6910-64c ra-b6920-4s to kernel 5.x

Signed-off-by: “pettershao” pettershao@ragilenetworks.com
2023-01-12 18:01:47 -08:00

18 lines
436 B
Bash
Executable File

#!/bin/sh
# postinst
kernel_version=$(uname -r)
if [ -e /boot/System.map-${kernel_version} ]; then
depmod -a -F /boot/System.map-${kernel_version} ${kernel_version} || true
fi
# enable platform-service
depmod -a
# systemctl enable platform-modules-ra-b6510-48v8c.service
# systemctl start platform-modules-ra-b6510-48v8c.service
systemctl enable pddf-platform-init.service
systemctl start pddf-platform-init.service
#DEBHELPER#