88d0ce5ce8
* Add docker-gbsyncd-broncos support * Address review comments * Add socket to gbsyncd * Upgrade gbsyncd-broncos to bullseye
15 lines
372 B
Bash
Executable File
15 lines
372 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
HWSKU_DIR=/usr/share/sonic/hwsku
|
|
|
|
mkdir -p /etc/sai.d/
|
|
|
|
# Create/Copy the psai.profile to /etc/sai.d/psai.profile
|
|
if [ -f $HWSKU_DIR/psai.profile.j2 ]; then
|
|
sonic-cfggen -d -t $HWSKU_DIR/psai.profile.j2 > /etc/sai.d/psai.profile
|
|
else
|
|
if [ -f $HWSKU_DIR/psai.profile ]; then
|
|
cp $HWSKU_DIR/psai.profile /etc/sai.d/psai.profile
|
|
fi
|
|
fi
|