( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0015415400{main}( ).../index.php:0
20.08254720560Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.518817133144Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.518917133200Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.518917133576Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.518917133576Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.519117133672Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.519817173592require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.523717470864GKTemplate->__construct( ).../component.php:31
100.529917655248GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.530517700104require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0015415400{main}( ).../index.php:0
20.08254720560Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.518817133144Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.518917133200Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.518917133576Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.518917133576Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.519117133672Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.519817173592require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.523717470864GKTemplate->__construct( ).../component.php:31
100.532217828432GKTemplateMenu->getMenuType( ).../gk.framework.php:85
Running Your Own Application at Startup
Logo
Print this page

Running Your Own Application at Startup

Method 1

  1. Log into your QNAP device using SSH or Telnet, for instance by using Putty
  2. Optional: install nano; use ipkg install nano & edit with nano instead of vi
  3. TS-201: Mount the config ramblock /dev/mtdblock4:
    # mount -t ext2 /dev/mtdblock4 /tmp/config 
  4. TS-109, TS-109P, TS-110, TS-119, TS-209, TS-209P, TS-219, TS-409 (Marvell ARM), TS-419P: Mount the config ramblock /dev/mtdblock5:
    # mount -t ext2 /dev/mtdblock5 /tmp/config
  5. TS-439, TS-509, TS-639, TS-809, TS-809U (x86): Mount the config ramblock /dev/sdx6:
    # mount -t ext2 /dev/sdx6 /tmp/config
  6. Create/Edit /tmp/config/autorun.sh .
    1. either using vi:
      # vi /tmp/config/autorun.sh
      1. Get vi editor into edit mode: press a
      2. Edit whatever you need to
      3. Exit edit mode: press ESC
      4. Save and exit: press ZZ
    2. or editing it using a desktop PC and e.g. SFTP
  7. Ensure that /tmp/config/autorun.sh is executable:
    # chmod +x /tmp/config/autorun.sh
  8. IMPORTANT: Unmount the mounted flash partition:
    # umount /tmp/config
Last modified onSunday, 14 October 2012 04:07

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0015415400{main}( ).../index.php:0
20.08254720560Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08254720560Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.361612448808Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.362212473216Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.362912528544Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.363212557368require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.370412992776K2ControllerItem->execute( ).../k2.php:64
90.370412992776K2ControllerItem->display( ).../BaseController.php:710
100.379313717976K2ControllerItem->display( ).../item.php:78
110.379313717976K2ControllerItem->display( ).../controller.php:19
120.383214114344Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.385014134712K2ViewItem->display( ).../ViewController.php:102
140.511017036048K2ViewItem->display( ).../view.html.php:742
150.511017036048K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.514517216248include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Qnap
  • Read 1631 times

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0015415400{main}( ).../index.php:0
20.08254720560Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08254720560Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.361612448808Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.362212473216Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.362912528544Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.363212557368require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.370412992776K2ControllerItem->execute( ).../k2.php:64
90.370412992776K2ControllerItem->display( ).../BaseController.php:710
100.379313717976K2ControllerItem->display( ).../item.php:78
110.379313717976K2ControllerItem->display( ).../controller.php:19
120.383214114344Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.385014134712K2ViewItem->display( ).../ViewController.php:102
140.511017036048K2ViewItem->display( ).../view.html.php:742
150.511017036048K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.514517216248include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.