summaryrefslogtreecommitdiffstats
path: root/application/controllers/ResourceController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/ResourceController.php')
-rw-r--r--application/controllers/ResourceController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index b852910..356704c 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -437,6 +437,7 @@ class ResourceController extends Zend_Controller_Action
if($loginname != '' && $password != ''){
if($user->getHometypeID() == 1){
exec("echo 'modprobe usb_storage' >> $tmp_conf/initramfs/postinit.local");
+ exec("echo 'while [ ! -d /dev/sdb1 ] \n do \n\t usleep 500000 \n\t mdev -s \n done' >> $tmp_conf/initramfs/postinit.local");
exec("echo 'mdev -s' >> $tmp_conf/initramfs/postinit.local");
exec("echo 'mkdir -p /media/openslx-stick' >> $tmp_conf/initramfs/postinit.local");
exec("echo 'mount /dev/sdb1 /media/openslx-stick' >> $tmp_conf/initramfs/postinit.local");