mirror of
https://github.com/ultravioletrs/cocos.git
synced 2026-06-23 04:10:25 +00:00
add ramfs to HAL (#212)
This commit is contained in:
committed by
GitHub
parent
ee8370406c
commit
4c80b574e3
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
MOUNT_POINT="/cocos"
|
||||
|
||||
# IFACES are all network interfaces excluding lo (LOOPBACK) and sit interfaces
|
||||
IFACES=$(ip link show | grep -vE 'LOOPBACK|sit*' | awk -F': ' '{print $2}')
|
||||
|
||||
@@ -15,3 +17,9 @@ for IFACE in $IFACES; do
|
||||
dhclient $IFACE
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -d "$MOUNT_POINT" ]; then
|
||||
mkdir -p $MOUNT_POINT
|
||||
fi
|
||||
|
||||
mount -t ramfs ramfs $MOUNT_POINT
|
||||
@@ -11,8 +11,8 @@ StandardError=file:/var/log/cocos/agent.stderr
|
||||
Environment=AGENT_GRPC_PORT=7002
|
||||
Environment=AGENT_LOG_LEVEL=info
|
||||
|
||||
ExecStartPre=/cocos/cocos_network_setup.sh
|
||||
ExecStart=/cocos/agent_start_script.sh
|
||||
ExecStartPre=/cocos_init/agent_setup.sh
|
||||
ExecStart=/cocos_init/agent_start_script.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
Reference in New Issue
Block a user