RT-IPC_camera/etc/init.d/S10mpp

19 lines
266 B
Bash

#!/bin/sh
sysctl -p
echo eth0 > /tmpfs/netdev
ifconfig lo 127.0.0.1
ifconfig lo up
telnetd -p 8357 &
mac=11:22:33:44:55:66
mac_path=/tmpfs/net/
mkdir -p $mac_path
mac_lined_file=$mac_path/mac.lined
echo "macaddress=$mac" > $mac_lined_file
sync
/etc/boottab &