gwl
29-12-2004, 21:25
Hello,
After reading a few posts on the forum, I tried a (simple) startup customization script:
(this is the 1st customization on the WL500g I ever did...)
mkdir /usr/local/sbin
echo '#!/bin/sh' > /usr/local/sbin/post-firewall
echo 'alias d="ls -la"' >> /usr/local/sbin/post-firewall
chmod +x /usr/local/sbin/post-firewall
flashfs save
flashfs commit
flashfs enable
reboot
It does get saved, but the "alias" isn't avaliable...
even if I run
[admin@(none) /tmp]$ /usr/local/sbin/post-firewall
[admin@(none) /tmp]$ d
I always get: "-sh: d: not found"
can anyone give some help?
thanks.
After reading a few posts on the forum, I tried a (simple) startup customization script:
(this is the 1st customization on the WL500g I ever did...)
mkdir /usr/local/sbin
echo '#!/bin/sh' > /usr/local/sbin/post-firewall
echo 'alias d="ls -la"' >> /usr/local/sbin/post-firewall
chmod +x /usr/local/sbin/post-firewall
flashfs save
flashfs commit
flashfs enable
reboot
It does get saved, but the "alias" isn't avaliable...
even if I run
[admin@(none) /tmp]$ /usr/local/sbin/post-firewall
[admin@(none) /tmp]$ d
I always get: "-sh: d: not found"
can anyone give some help?
thanks.