[Grml] Problem with grml autoconfig

Bojan Sukalo shukalo83 at yahoo.com
Mon Sep 5 10:28:29 CEST 2011


Hello everyone!

Maybe this is not the right way to ask general user question (wrong mail list or something) so I'm sorry if made any problems.

I have an urgent situation to make ad-hoc openvpn server from usb stick. Using grml for some time as a live cd and recovery tool I think this can be done with grml.

So I have openvpn folder with all the necesary stuff, I formatted usb stick in following way:
1. 3GB FAT32 wiht grml on it (grml2usb --bootoptions="nodhcp")        /dev/sdb1
2 1GB ext3 with GRMLCFG label with scripts dir and inside it grml.sh script  /dev/sdb5

grml.sh script is chmod 755, so executable and readable by everyone.

basicaly the content of script is:


#!/bin/bash
ip link set dev eth0 up
ip addr add dev eth0 192.168.1.253/24
ip route add default via 192.168.1.254
#now I wont to copy the folder to rw fs in order to write status files and logs so
cp -r /mnt/grmlcfg/openvpn /root/ 
cd /root/openvpn
openvpn --config /root/openvpn/server.conf &
echo 1 > /proc/sys/net/ipv4/ip_forward
#and to start ssh server to access the box
/etc/init.d/ssh start


The debug output says that GRMLCFG is detected and mounted to /mnt/grmlcfg as ro

When booting finished, nothing has happened, as the script had not been run.

Can anybody shed some light on this please?

Thank You.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mur.at/pipermail/grml/attachments/20110905/212ba735/attachment.html>


More information about the Grml mailing list