Cisco Cisco NSS322 2-Bay Smart Storage Referencia técnica

Descargar
Página de 4
How to Add Items to crontab 
 
© 2010 Cisco Systems, Inc. All rights reserved. 
Page 3 of 4 
Autorun Script 
 
 
How to Run Your Own Application at Startup/Autorun Script 
 
Method 1 
1.  Login to your NAS using SSH or telnet. 
2.  Mount the config ramblock /dev/mtdblock4: 
# mount 
–t ext2 /dev/sdx6 /tmp/config 
3.  Create/Edit /tmp/config/autorun.sh:  
# vi /tmp/config/autorun.sh 
4.  Ensure /tmp/config/autorun.sh is executable: 
# chmod +x /tmp/config/autorun.sh 
5.  IMPORTANT: Unmount the mounted flash partition: 
# unmount /tmp/config 
 
Method 2 
If you edit this file regularly you can save time by creating a shell script (e.g. 
editautorun.sh) to automate the process.  You can call the script by either putting 
it in the environment path, or add its folder to the path or call it by an alias. 
The script contents are: 
 
Edit Autorun Script