Method 1
- Log into your QNAP device using SSH or Telnet, for instance by using Putty
- Optional: install nano; use ipkg install nano & edit with nano instead of vi
- TS-201: Mount the config ramblock /dev/mtdblock4:
# mount -t ext2 /dev/mtdblock4 /tmp/config
- 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
- TS-439, TS-509, TS-639, TS-809, TS-809U (x86): Mount the config ramblock /dev/sdx6:
# mount -t ext2 /dev/sdx6 /tmp/config
- Create/Edit /tmp/config/autorun.sh .
- either using vi:
# vi /tmp/config/autorun.sh
- Get vi editor into edit mode: press a
- Edit whatever you need to
- Exit edit mode: press ESC
- Save and exit: press ZZ
- or editing it using a desktop PC and e.g. SFTP
- Ensure that /tmp/config/autorun.sh is executable:
# chmod +x /tmp/config/autorun.sh
- 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 |
---|
# | Time | Memory | Function | Location |
---|
1 | 0.0003 | 413784 | {main}( ) | .../index.php:0 |
2 | 0.0853 | 4718384 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0853 | 4718384 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3270 | 12446424 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3280 | 12470832 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3289 | 12526160 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3293 | 12554984 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3477 | 12990392 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3477 | 12990392 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3618 | 13715592 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3618 | 13715592 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3679 | 14111960 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3728 | 14132328 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.5127 | 17033104 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.5127 | 17033104 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.5175 | 17213304 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in Qnap
- Read 1629 times