Diskstation> mount
/dev/root on / type ext4 (rw,relatime,barrier=0,journal_checksum,data=ordered)
/tmp on /tmp type tmpfs (0)
none on /dev/pts type devpts (gid=4,mode=620)
/sys on /sys type sysfs (0)
/proc/bus/usb on /proc/bus/usb type usbfs (0)
/dev/md2 on /volume1 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl)
/volume1/@optware on /opt type bind (bind)
/dev/sdq1 on /volumeUSB2/usbshare2-1 type fuseblk (rw,allow_other,blksize=4096,default_permissions)
/dev/sdt1 on /volumeUSB1/usbshare type ext4 (nodelalloc,synoacl)
none on /proc/fs/nfsd type nfsd (0)
Diskstation>
Diskstation> cat /etc/rc.local
#!/bin/sh
# Optware setup
# [ -x /etc/rc.optware ] && /etc/rc.optware start
mount -o bind /volume1/@optware /opt # Optware setup
[ -x /etc/rc.optware ] && /etc/rc.optware start
exit 0
Diskstation>
Diskstation> ls -la /
drwxr-xr-x 26 root root 4096 Jan 29 2012 .
drwxr-xr-x 26 root root 4096 Jan 29 2012 ..
drwxr-xr-x 3 root root 4096 Dec 30 1931 .old_patch_info
-rw------- 1 root root 1024 Mar 8 1902 .rnd
drwxr-xr-x 3 root root 4096 Dec 30 1931 .syno
drwxr-xr-x 2 root root 4096 Mar 8 1902 .system_info
drwxr-xr-x 2 root root 4096 Dec 30 1931 bin
drwxr-xr-x 9 root root 36864 Jan 29 2012 dev
drwxr-xr-x 17 root root 4096 Jan 29 2012 etc
drwxr-xr-x 15 root root 4096 Jan 29 2012 etc.defaults
drwxr-xr-x 2 root root 4096 Nov 12 16:23 initrd
drwxr-xr-x 17 root root 20480 Jan 29 2012 lib
lrwxrwxrwx 1 root root 11 Dec 30 1931 linuxrc -> bin/busybox
drwx------ 2 root root 4096 Nov 12 16:17 lost+found
drwxr-xr-x 2 root root 4096 Nov 12 16:16 mnt
drwxr-xr-x 14 root root 4096 Jan 8 15:10 opt
dr-xr-xr-x 136 root root 0 Jan 1 1970 proc
drwxr-xr-x 2 root root 4096 Dec 30 1931 root
drwxr-xr-x 2 root root 4096 Dec 30 1931 sbin
drwxr-xr-x 11 root root 0 Jan 1 1970 sys
drwxrwxrwt 7 root root 1240 Jan 9 14:45 tmp
drwxr-xr-x 8 root root 4096 Dec 30 1931 usr
drwxr-xr-x 14 root root 4096 Jan 29 2012 var
drwxr-xr-x 11 root root 4096 Dec 30 1931 var.defaults
drwxr-xr-x 24 root root 4096 Jan 29 2012 volume1
drwxr-xr-x 3 root root 4096 Jan 29 2012 volumeUSB1
drwxrwxrwx 5 root root 4096 Jan 29 2012 volumeUSB2
drwxrwxrwx 2 root root 4096 Dec 7 17:51 volumeUSB3
Diskstation>
Diskstation> echo $PATH
/opt/bin:/opt/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/syno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
Diskstation>